Simple playwright e2e test (#234)

This commit is contained in:
Will Chen
2025-05-23 10:44:52 -07:00
committed by GitHub
parent 9d046834d7
commit 644012c9a5
8 changed files with 236 additions and 23 deletions

View File

@@ -65,6 +65,10 @@ export async function onFirstRunMaybe() {
* applications folder.
*/
async function promptMoveToApplicationsFolder(): Promise<void> {
// Why not in e2e tests?
// There's no way to stub this dialog in time, so we just skip it
// in e2e testing mode.
if (process.env.E2E_TEST_BUILD) return;
if (process.platform !== "darwin") return;
if (app.isInApplicationsFolder()) return;
logger.log("Prompting user to move to applications folder");