fix: avatar upload flakyness (#14021)

This commit is contained in:
Omar López
2024-03-07 19:14:06 +00:00
committed by GitHub
parent e60454750e
commit 1c39dbad3d
@@ -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");