Skip to content

Commit

Permalink
try playwright login fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrisse committed Aug 2, 2024
1 parent 39504f9 commit 3c3a3eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/leapfrogai_ui/tests/global.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ setup('authenticate', async ({ page }) => {
await emailField.fill('[email protected]');
await passwordField.click();
await passwordField.fill('password123');

const emailText = await emailField.innerText();
const passwordText = await passwordField.innerText();
if (emailText !== '[email protected]') await emailField.fill('[email protected]');
if (passwordText !== 'password123') await passwordField.fill('password123');

await page.getByTestId('submit-btn').click();
} else {
// uses local supabase test users, logs in directly with Supabase, no Keycloak
Expand Down

0 comments on commit 3c3a3eb

Please sign in to comment.