* 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
14 lines
388 B
TypeScript
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()
|
|
})
|
|
})
|