Skip to content

Commit 22fcbd9

Browse files
committed
Fix install button selector: 'Install app' renamed to 'Save and install'
The Falcon App Catalog UI renamed the install button from 'Install app' to 'Save and install'. Update the selector to match, with .or() fallback for backwards compatibility.
1 parent 6234c23 commit 22fcbd9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

e2e/src/pages/AppCatalogPage.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,13 @@ export class AppCatalogPage extends BasePage {
174174
}
175175

176176
/**
177-
* Click the final "Install app" button
177+
* Click the final "Save and install" button
178178
*/
179179
private async clickInstallAppButton(): Promise<void> {
180-
const installButton = this.page.getByRole('button', { name: 'Install app' });
180+
const installButton = this.page.getByRole('button', { name: 'Save and install' })
181+
.or(this.page.getByRole('button', { name: 'Install app' }));
181182

182-
await this.waiter.waitForVisible(installButton, { description: 'Install app button' });
183+
await this.waiter.waitForVisible(installButton, { description: 'Save and install button' });
183184

184185
// Wait for button to be enabled
185186
await installButton.waitFor({ state: 'visible', timeout: 10000 });
@@ -188,8 +189,8 @@ export class AppCatalogPage extends BasePage {
188189
// Simple delay for form to enable button
189190
await this.waiter.delay(1000);
190191

191-
await this.smartClick(installButton, 'Install app button');
192-
this.logger.info('Clicked Install app button');
192+
await this.smartClick(installButton, 'Save and install button');
193+
this.logger.info('Clicked Save and install button');
193194
}
194195

195196
/**

0 commit comments

Comments
 (0)