一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
1.6 KiB
1.6 KiB
Integration tests
The integration tests in this directory can be run with yarn test-ui.
- To run all tests from a specific file, use
yarn test-ui testFileName. For example,yarn test-ui wcagto run the tests inwcag.ts. - To run all tests matching a pattern, use
yarn test-ui -g "pattern here", where-gis short for "grep". - Tests use a
test-profiledirectory that should be re-created before every test. - Only one Electron application should be instantiated per test file.
- Files in the
models/directory follow the page object model.
References
The following sources are helpful for designing and implementing Electron integration tests with Playwright:
- A setup guide from an organisation that uses Playwright and that organisation's test suite.
- The Playwright ElectronApp docs
- Electron Playwright example repository
- Playwright best practices
- Running and debugging tests from VSCode.
FAQ
How do I fix timeout-related test failures?
If Playwright tests are timing out, consider modifying playwright.config.ts in the app-desktop folder. For example, increase the timeout option to 120_000 (2 minutes).
Alternatively, try temporarily disabling fullyParallel (which disables running tests in parallel).