Skip to content

Commit

Permalink
selector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gallayl committed Mar 17, 2024
1 parent 3d077a5 commit b794502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test.describe('Example Application', () => {
test('Login and logout roundtrip', async ({ page }) => {
await page.goto('/')

const loginForm = await page.locator('shade-login>div>shade-paper>form')
const loginForm = await page.locator('shade-login form')
await expect(loginForm).toBeVisible()

const usernameInput = await loginForm.locator('input[name="userName"]')
Expand Down Expand Up @@ -32,7 +32,7 @@ test.describe('Example Application', () => {
await expect(logoutButton).toHaveText('Log Out')
await logoutButton.click()

const loggedOutLoginForm = await page.locator('shade-login>div>shade-paper>form')
const loggedOutLoginForm = await page.locator('shade-login form')
await expect(loggedOutLoginForm).toBeVisible()
})
})

0 comments on commit b794502

Please sign in to comment.