Skip to content

Commit

Permalink
fix enterprise playwright with keycloak 26
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Feb 2, 2025
1 parent 41b87c7 commit 3d5fffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/tests/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ export const test = base.extend<{
await page.locator('input[name="password"]').fill('admin')
await Promise.all([
page.waitForURL(`${baseURL}${toolPath}`),
page.locator('input:has-text("Sign In")').click(),
page.locator('button:has-text("Sign In")').click(),
])
await page.context().storageState({ path: 'adminStorageState.json' })
} else {
await page.locator('input[name="username"]').fill('operator')
await page.locator('input[name="password"]').fill('operator')
await Promise.all([
page.waitForURL(`${baseURL}${toolPath}`),
page.locator('input:has-text("Sign In")').click(),
page.locator('button:has-text("Sign In")').click(),
])
await page.context().storageState({ path: 'storageState.json' })
}
Expand Down

0 comments on commit 3d5fffa

Please sign in to comment.