diff --git a/test/cypress/e2e/faces.cy.ts b/test/cypress/e2e/faces.cy.ts index 029e432e..a3461720 100644 --- a/test/cypress/e2e/faces.cy.ts +++ b/test/cypress/e2e/faces.cy.ts @@ -7,11 +7,17 @@ describe('Faces', () => { cy.get('#username').type('admin'); cy.get('#password').clear(); cy.get('#password').type('admin'); + cy.intercept({ + method: 'Get', + url: '/pgapi/gallery/content/', + }).as('getContent'); cy.intercept({ method: 'Get', url: '/pgapi/person', }).as('getPerson'); cy.get('.col-sm-12 > .btn').click(); + // make sure that the dir is parsed before navigating to faces + cy.wait('@getContent'); cy.get('nav .nav-item .nav-link').contains('Faces').click({force: true}); }); it('Show faces', () => {