Skip to content

Commit

Permalink
Merge pull request #1852 from oasisprotocol/lw/fix-playwright
Browse files Browse the repository at this point in the history
Fix playwright tests finding duplicate elements in closing modals
  • Loading branch information
lukaw3d authored Feb 17, 2024
2 parents b88f079 + 4624afa commit 21e94f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/1852.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix playwright tests finding duplicate elements in closing modals
2 changes: 2 additions & 0 deletions playwright/tests/toolbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ test.describe('Profile tab', () => {
await expect(page.getByText('Password updated.')).toBeVisible()

await page.getByTestId('close-settings-modal').click()
await expect(page.getByTestId('close-settings-modal')).not.toBeVisible()
await page.getByRole('button', { name: /Lock profile/ }).click()
await page.getByPlaceholder('Enter your password here').fill(tempPassword)
await page.getByRole('button', { name: /Unlock/ }).click()
Expand All @@ -63,6 +64,7 @@ test.describe('Profile tab', () => {

// validate default password
await page.getByTestId('close-settings-modal').click()
await expect(page.getByTestId('close-settings-modal')).not.toBeVisible()
await page.getByRole('button', { name: /Lock profile/ }).click()
await page.getByPlaceholder('Enter your password here').fill(password)
await page.getByRole('button', { name: /Unlock/ }).click()
Expand Down

0 comments on commit 21e94f9

Please sign in to comment.