Skip to content

Commit

Permalink
test: add back delays for login to work around Playwright bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Sep 27, 2024
1 parent b0b0d90 commit 064e3c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/e2e/lib/loginpage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,18 @@ export class LoginPage {
}

public async login(username: string, password: string): Promise<void> {
await this.userFieldLocator.click();
// eslint-disable-next-line playwright/no-wait-for-timeout
await this.page.waitForTimeout(60);
await this.userFieldLocator.fill(username);

await this.passwordFieldLocator.click();
// eslint-disable-next-line playwright/no-wait-for-timeout
await this.page.waitForTimeout(60);
await this.passwordFieldLocator.fill(password);

// eslint-disable-next-line playwright/no-wait-for-timeout
await this.page.waitForTimeout(60);
await this.submitButtonLocator.click();
await this.page.waitForLoadState('domcontentloaded');
}
Expand Down

0 comments on commit 064e3c2

Please sign in to comment.