Compare commits

...

2 Commits

Author SHA1 Message Date
abeatrix 83ea6337a7 fix 2025-07-31 16:20:51 -07:00
abeatrix 2918942414 fix: E2E test stability by reordering sidebar and notification setup
- Extract editor menu locator to variable for better readability
- Move sidebar opening to page fixture to ensure it's available earlier
- Wait for chat input visibility before disabling notifications
- Prevents race conditions in test initialization
2025-07-31 16:11:13 -07:00
+3 -1
View File
@@ -124,7 +124,8 @@ export class E2ETestHelper {
}
public static async runCommandPalette(page: Page, command: string): Promise<void> {
await page.locator("li").filter({ hasText: "[Extension Development Host]" }).first().click()
const editorMenu = page.locator("li").filter({ hasText: "[Extension Development Host]" }).first()
await editorMenu.click()
const editorSearchBar = page.getByRole("textbox", {
name: "Search files by name (append",
})
@@ -273,6 +274,7 @@ export const e2e = test
.extend({
page: async ({ app }, use) => {
const page = await app.firstWindow()
// Disable notifications before opening sidebar
await E2ETestHelper.runCommandPalette(page, "notifications: toggle do not disturb")
await use(page)
},