mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 11:56:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			597 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			597 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
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");
 | 
						|
});
 |