Skip to content

Commit dd40b88

Browse files
committed
test fix
1 parent ddbd7f0 commit dd40b88

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tests/e2e/profile.spec.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ test.describe("Profile Picture Upload", () => {
101101
await page.getByRole("button", { name: /edit details/i }).click();
102102
await expect(page.getByRole("dialog")).toBeVisible();
103103

104+
const dialog = page.getByRole("dialog");
105+
await dialog.locator('input[name="phone"]').fill("555-123-4567");
106+
await dialog.locator('input[name="location"]').fill("Atlanta, GA");
107+
104108
await page.locator('input[type="file"]').setInputFiles({
105109
name: "profile.jpg",
106110
mimeType: "image/jpeg",
@@ -129,6 +133,9 @@ test.describe("Profile Picture Upload", () => {
129133

130134
// Upload a photo first
131135
await page.getByRole("button", { name: /edit details/i }).click();
136+
const dialog = page.getByRole("dialog");
137+
await dialog.locator('input[name="phone"]').fill("555-123-4567");
138+
await dialog.locator('input[name="location"]').fill("Atlanta, GA");
132139
await page.locator('input[type="file"]').setInputFiles({
133140
name: "profile.jpg",
134141
mimeType: "image/jpeg",

0 commit comments

Comments
 (0)