diff --git a/src/test/playwright/support/pageobjects/exam/ExamExerciseGroupsPage.ts b/src/test/playwright/support/pageobjects/exam/ExamExerciseGroupsPage.ts index e2f510b6a0f2..4e4379f12817 100644 --- a/src/test/playwright/support/pageobjects/exam/ExamExerciseGroupsPage.ts +++ b/src/test/playwright/support/pageobjects/exam/ExamExerciseGroupsPage.ts @@ -22,8 +22,9 @@ export class ExamExerciseGroupsPage { async clickEditGroup(groupID: number) { await this.page.click(`#group-${groupID} .edit-group`); } + async clickEditGroupForTestExam() { - await this.page.getByText('Edit').click(); + await this.page.getByRole('link', { name: 'Edit' }).click(); } async clickDeleteGroup(groupID: number, groupName: string) {