From b2aaf62035f36782115bb20c0d57e2938057df6a Mon Sep 17 00:00:00 2001 From: JefQuidousse2 Date: Tue, 29 Oct 2024 15:13:47 +0100 Subject: [PATCH] fix test --- tests/survey-page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/survey-page.ts b/tests/survey-page.ts index fd1f654..825f46e 100644 --- a/tests/survey-page.ts +++ b/tests/survey-page.ts @@ -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();