Skip to content

Commit 890bb2e

Browse files
authored
fix(e2e): use URL filter parameter for App Catalog search (#83)
The Falcon App Catalog UI changed - the placeholder-based search no longer works. This commit updates searchAndNavigateToApp() to use URL query parameter format: filter=name:~'appname'
1 parent 0553149 commit 890bb2e

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

e2e/src/pages/AppCatalogPage.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,13 @@ export class AppCatalogPage extends BasePage {
3131
private async searchAndNavigateToApp(appName: string): Promise<void> {
3232
this.logger.info(`Searching for app '${appName}' in catalog`);
3333

34-
await this.navigateToPath('/foundry/app-catalog', 'App catalog page');
35-
36-
// Wait for the page to fully load before looking for the filter box
34+
// Navigate to app catalog with filter query parameter
35+
// Format: filter=name:~'searchterm'
36+
const baseUrl = config.falconBaseUrl || 'https://falcon.us-2.crowdstrike.com';
37+
const filterParam = encodeURIComponent(`name:~'${appName}'`);
38+
await this.page.goto(`${baseUrl}/foundry/app-catalog?filter=${filterParam}`);
3739
await this.page.waitForLoadState('networkidle');
3840

39-
const filterBox = this.page.getByPlaceholder('Type to filter');
40-
if (await filterBox.isVisible().catch(() => false)) {
41-
await filterBox.fill(appName);
42-
await this.page.waitForLoadState('networkidle');
43-
}
44-
4541
const appLink = this.page.getByRole('link', { name: appName, exact: true });
4642

4743
try {

0 commit comments

Comments
 (0)