mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	client: Fix fancytree being broken on mobile
This commit is contained in:
		
							
								
								
									
										18
									
								
								integration-tests/tree.spec.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								integration-tests/tree.spec.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
import test, { expect } from "@playwright/test";
 | 
			
		||||
 | 
			
		||||
test("Renders on desktop", async ({ page, context }) => {
 | 
			
		||||
    await page.goto('http://localhost:8082');
 | 
			
		||||
    await expect(page.locator('.tree')).toContainText('Trilium Integration Test');
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test("Renders on mobile", async ({ page, context }) => {
 | 
			
		||||
    await context.addCookies([
 | 
			
		||||
        {
 | 
			
		||||
            url: "http://localhost:8082",
 | 
			
		||||
            name: "trilium-device",
 | 
			
		||||
            value: "mobile"
 | 
			
		||||
        }
 | 
			
		||||
    ]);
 | 
			
		||||
    await page.goto('http://localhost:8082');
 | 
			
		||||
    await expect(page.locator('.tree')).toContainText('Trilium Integration Test');
 | 
			
		||||
});
 | 
			
		||||
@@ -128,7 +128,7 @@
 | 
			
		||||
<script src="<%= assetPath %>/node_modules/dayjs/dayjs.min.js"></script>
 | 
			
		||||
 | 
			
		||||
<link href="<%= assetPath %>/stylesheets/tree.css" rel="stylesheet">
 | 
			
		||||
<script src="<%= assetPath %>/libraries/fancytree/jquery.fancytree-all-deps.min.js"></script>
 | 
			
		||||
<script src="<%= assetPath %>/node_modules/jquery.fancytree/dist/jquery.fancytree-all-deps.min.js"></script>
 | 
			
		||||
 | 
			
		||||
<link href="<%= assetPath %>/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
 | 
			
		||||
<script src="<%= assetPath %>/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user