| 
									
										
										
										
											2024-08-14 19:15:07 +03:00
										 |  |  | import test, { expect } from "@playwright/test"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | test("Renders on desktop", async ({ page, context }) => { | 
					
						
							| 
									
										
										
										
											2025-01-09 18:07:02 +02:00
										 |  |  |     await page.goto("http://localhost:8082"); | 
					
						
							|  |  |  |     await expect(page.locator(".tree")).toContainText("Trilium Integration Test"); | 
					
						
							| 
									
										
										
										
											2024-08-14 19:15:07 +03:00
										 |  |  | }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | test("Renders on mobile", async ({ page, context }) => { | 
					
						
							|  |  |  |     await context.addCookies([ | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |             url: "http://localhost:8082", | 
					
						
							|  |  |  |             name: "trilium-device", | 
					
						
							|  |  |  |             value: "mobile" | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     ]); | 
					
						
							| 
									
										
										
										
											2025-01-09 18:07:02 +02:00
										 |  |  |     await page.goto("http://localhost:8082"); | 
					
						
							|  |  |  |     await expect(page.locator(".tree")).toContainText("Trilium Integration Test"); | 
					
						
							| 
									
										
										
										
											2024-12-22 15:45:54 +02:00
										 |  |  | }); |