Fix frontend tests

This commit is contained in:
Ramon Wenger 2023-02-21 17:52:16 +01:00
parent 52a4411f3e
commit c5929d569e
2 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,7 @@ describe('Project Page', () => {
it('does not show button on mobile', () => {
cy.viewport('iphone-8');
cy.visit('/portfolio/groot');
cy.getByDataCy('project-title').should('exist');
cy.getByDataCy('add-project-entry').should('not.exist');
});

View File

@ -122,6 +122,7 @@ describe('Projects page', () => {
operations,
});
cy.viewport('iphone-8');
cy.visit('/portfolio');
cy.getByDataCy('page-title').should('exist');
cy.getByDataCy('create-project-button').should('not.be.visible');