Skip to content

Commit

Permalink
fix: test delete accc
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusti Fernandez Pardo committed Aug 24, 2022
1 parent dc06114 commit 6fb2454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/web/pages/settings/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ function SettingsView(props: ComponentProps<typeof Settings> & { localeProp: str
}}>
<p className="mb-7">{t("delete_account_confirmation_message")}</p>
<PasswordField
data-testid="password"
name="password"
id="password"
type="password"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/playwright/auth/delete-account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test("Can delete user account", async ({ page, users }) => {
await page.waitForSelector("[data-testid=dashboard-shell]");

await page.goto(`/settings/profile`);
await page.fill('input[name="password"]', "delete-me");
await page.fill("[data-testid=password", "delete-me");
await page.click("[data-testid=delete-account]");

await expect(page.locator(`[data-testid=delete-account-confirm]`)).toBeVisible();
Expand Down

0 comments on commit 6fb2454

Please sign in to comment.