From 5815f2fd45e6a75a08d9a6d9eb1d2e10c2be1449 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Fri, 24 Nov 2023 17:36:36 +0100 Subject: [PATCH] Try table instead of cell --- .../class_page/second_teachers_invites.cy.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/cypress/e2e/for-teacher_page/class_page/second_teachers_invites.cy.js b/tests/cypress/e2e/for-teacher_page/class_page/second_teachers_invites.cy.js index 25c605c8ad4..eb9f6090169 100644 --- a/tests/cypress/e2e/for-teacher_page/class_page/second_teachers_invites.cy.js +++ b/tests/cypress/e2e/for-teacher_page/class_page/second_teachers_invites.cy.js @@ -52,8 +52,7 @@ describe("Second teachers: invitations", () => { .get('.username_cell') .contains(secondTeachers[1]) .parent('tr') - .children('.remove_user_invitation') - .children('a') + .find('.remove_user_invitation a') .click(); cy.get('#modal-confirm #modal-yes-button').click(); @@ -74,6 +73,6 @@ describe("Second teachers: invitations", () => { loginForTeacher(); navigateToClass(className); - cy.get("#second_teachers_container .username_cell").contains(secondTeachers[0]); + cy.get("#second_teachers_container").contains(secondTeachers[0]); }) })