Fix frontend test
This commit is contained in:
parent
09899f1c38
commit
ebb8b11f74
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue