TidGi-Desktop/docs/TestingE2E.md
2026-02-05 00:52:45 +08:00

623 B

E2E

E2E test open production app

See User profile section above, we need to set NODE_ENV as test to open with correct profile.

This is done by using EnvironmentPlugin in webpack.plugins.js. Note that EsbuildPlugin's define doesn't work, it won't set env properly.

E2E test hang, and refused to exit until ctrl+C

Check features/stepDefinitions/application.ts to see if After step includes all clean up steps, like closing all windows instances before closing the app, and stop all utility servers.

Global shortcut not working

See src/helpers/testKeyboardShortcuts.ts