Skip to content

Commit ad614f2

Browse files
committed
fix: Fail test suite with clear message when app installation fails
1 parent 5fb5abd commit ad614f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

e2e/tests/app-install.setup.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ setup('install Functions with Python app', async ({ appCatalogPage, appName }) =
66

77
if (!isInstalled) {
88
console.log(`App '${appName}' is not installed. Installing...`);
9-
await appCatalogPage.installApp(appName);
9+
const installed = await appCatalogPage.installApp(appName);
10+
11+
if (!installed) {
12+
throw new Error(
13+
`Failed to install app '${appName}'. Please install the app manually at:\n` +
14+
`https://falcon.us-2.crowdstrike.com/foundry/app-catalog/179c33c7963e4b1fb33d1d2734e6c621\n` +
15+
`This is a known issue - see #ask-foundry for app installation problems.`
16+
);
17+
}
1018
} else {
1119
console.log(`App '${appName}' is already installed`);
1220
}

0 commit comments

Comments
 (0)