Skip to content

Commit 26c28be

Browse files
committed
Fix toast detection to use more specific patterns
1 parent b223b1e commit 26c28be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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-
// Try to find success message first
219-
const installedMessage = this.page.getByText(/installed/i).first();
220-
const errorMessage = this.page.getByText(/error.*install/i).first();
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();
221221

222222
try {
223223
await Promise.race([

0 commit comments

Comments
 (0)