diff --git a/client/cypress/integration/frontend/rooms/room-page.spec.js b/client/cypress/integration/frontend/rooms/room-page.spec.js index 824e6d6c..5fbfa26c 100644 --- a/client/cypress/integration/frontend/rooms/room-page.spec.js +++ b/client/cypress/integration/frontend/rooms/room-page.spec.js @@ -149,6 +149,7 @@ describe('The Room Page', () => { }; const otherRoom = { id: btoa('RoomNode:otherRoom'), + slug: 'other-slug', schoolClass, }; let rooms = [roomToDelete, otherRoom]; @@ -176,7 +177,9 @@ describe('The Room Page', () => { cy.getByDataCy('room-widget').should('have.length', 2); cy.getByDataCy('room-widget').first().click(); cy.getByDataCy('toggle-more-actions-menu').click(); - cy.getByDataCy('delete-room').click(); + cy.getByDataCy('delete-room').within(() => { + cy.get('a').click(); + }); cy.url().should('include', 'rooms'); cy.getByDataCy('room-widget').should('have.length', 1); });