Add more failing frontend test steps

This commit is contained in:
Ramon Wenger 2021-07-28 20:00:09 +02:00
parent 11aac2ec94
commit 37e5c7cf64
3 changed files with 5 additions and 1 deletions

View File

@ -59,6 +59,7 @@ const checkRoomReadOnly = ({editable, readOnly, classReadOnly = false}) => {
cy.visit('room/some-room');
cy.get('.room-entry').should('exist');
cy.getByDataCy('add-room-entry-button').should(exist);
cy.getByDataCy('room-actions').should(exist);
};
describe('Room Team Management - Read only', () => {

View File

@ -49,6 +49,7 @@ const checkRoomsReadOnly = ({editable, readOnly, classReadOnly = false}) => {
cy.log('visit');
cy.get('.room-widget').should('exist');
cy.getByDataCy('add-room').should(exist);
cy.getByDataCy('widget-footer').should(exist);
};
describe('Room Team Management - Read only', () => {

View File

@ -10,7 +10,9 @@
<room-group-widget v-bind="schoolClass"/>
<entry-count-widget :entry-count="entryCount"/>
</router-link>
<widget-footer v-if="canEditRoom">
<widget-footer
data-cy="widget-footer"
v-if="canEditRoom">
<room-actions :id="id"/>
</widget-footer>
</div>