Skip to content

Commit c3f8e19

Browse files
committed
Fix toast detection to match exact app name in messages
1 parent 26c28be commit c3f8e19

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

e2e/src/pages/AppCatalogPage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ export class AppCatalogPage extends BasePage {
215215
}
216216

217217
// Wait for second toast with final status (installed or error)
218-
// Use more specific patterns to avoid matching other page elements
219-
const installedMessage = this.page.getByText(/successfully installed|app.*installed/i).first();
220-
const errorMessage = this.page.getByText(/failed|error/i).first();
218+
// Match exact toast messages using app name
219+
const installedMessage = this.page.getByText(`${appName} installed`).first();
220+
const errorMessage = this.page.getByText(`Error installing ${appName}`).first();
221221

222222
try {
223223
await Promise.race([

0 commit comments

Comments
 (0)