Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JefQuidousse2 committed Oct 29, 2024
1 parent 0d352de commit b2aaf62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/survey-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export class SurveyPage {
}

async navigateToAnonymousResults(role: string) {
await this.page.goto(`http://localhost:${this.port}/result/${role}`);
await this.page.waitForURL(`http://localhost:${this.port}/result/${role}`);
await this.page.goto(`http://localhost:${this.port}/result?role=${role}`);
await this.page.waitForURL(`http://localhost:${this.port}/result?role=${role}`);
const isTextVisible = await this.page
.getByText(`Viewing results for role: ${role}`)
.isVisible();
Expand Down

0 comments on commit b2aaf62

Please sign in to comment.