Skip to content

Commit

Permalink
tests survey
Browse files Browse the repository at this point in the history
  • Loading branch information
JefQuidousse2 committed Oct 30, 2024
1 parent 2810a33 commit 27dca58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/survey-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export class SurveyPage {
async navigateToAnonymousResults(role: string) : Promise<boolean>{
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}`)
.getByText(`Viewing results for role:`)
.isVisible();
return isTextVisible;
}
Expand Down

0 comments on commit 27dca58

Please sign in to comment.