Skip to content

Scheduling infrastructure for absolutely everyone.

fix: avatar upload flakyness (#14021)

Omar López1c39dbad3df0
diff --git a/apps/web/playwright/settings/upload-avatar.e2e.ts b/apps/web/playwright/settings/upload-avatar.e2e.ts
index 191dfd476a5..607432e9998 100644
--- a/apps/web/playwright/settings/upload-avatar.e2e.ts
+++ b/apps/web/playwright/settings/upload-avatar.e2e.ts
@@ -40,10 +40,8 @@ test.describe("UploadAvatar", async () => {
},
});
- // todo: remove this; ideally the organization-avatar is updated the moment
- // 'Settings updated succesfully' is saved.
- await page.waitForLoadState("networkidle");
- const avatar = page.getByTestId("profile-upload-avatar").locator("img");
+ // Wait for the avatar image with the http src to appear instead of the data uri
+ const avatar = page.getByTestId("profile-upload-avatar").locator("img[src^=http]");
const src = await avatar.getAttribute("src");