Files
cherry-studio/tests/e2e/launch.test.tsx
one 665a62080b test: more unit tests (#5130)
* test: more unit tests

- Adjust vitest configuration to handle main process and renderer process tests separately
- Add unit tests for main process utils
- Add unit tests for the renderer process
- Add three component tests to verify vitest usage: `DragableList`, `Scrollbar`, `QuickPanelView`
- Add an e2e startup test to verify playwright usage
- Extract `splitApiKeyString` and add tests for it
- Add and format some comments

* fix: mock individual properties

* test: add tests for CustomTag

* test: add tests for ExpandableText

* test: conditional rendering tooltip of tag

* chore: update dependencies
2025-05-26 16:50:26 +08:00

14 lines
388 B
TypeScript

import { _electron as electron, expect, test } from '@playwright/test'
let electronApp: any
let window: any
test.describe('App Launch', () => {
test('should launch and close the main application', async () => {
electronApp = await electron.launch({ args: ['.'] })
window = await electronApp.firstWindow()
expect(window).toBeDefined()
await electronApp.close()
})
})