Fix frontend test

This commit is contained in:
Ramon Wenger 2022-06-27 17:23:37 +02:00
parent 09899f1c38
commit ebb8b11f74
1 changed files with 4 additions and 1 deletions

View File

@ -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);
});