mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	e2e(desktop): create empty project
This commit is contained in:
		
							
								
								
									
										13
									
								
								apps/desktop-e2e/src/example.spec.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								apps/desktop-e2e/src/example.spec.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| import { test, expect, _electron as electron } from '@playwright/test'; | ||||
| import { join } from 'path'; | ||||
|  | ||||
| test('Electron app should display correct title', async () => { | ||||
|   // Launch Electron app | ||||
|   const distPath = join(__dirname, '../../desktop/dist/main.cjs'); | ||||
|   const app = await electron.launch({ args: [ distPath ] }); | ||||
|  | ||||
|   // Get the main window | ||||
|   const window = await app.firstWindow(); | ||||
|   await expect(window).toHaveTitle("Setup"); | ||||
|   await app.close(); | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user