You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
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).