Skip to content

Commit

Permalink
Merge pull request #890 from sjinks/fix-login
Browse files Browse the repository at this point in the history
test: add back delays for login to work around Playwright bugs
  • Loading branch information
sjinks authored Sep 27, 2024
2 parents b0b0d90 + 064e3c2 commit cf6b2f6
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 cf6b2f6

Please sign in to comment.