1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Waiting for directory scanning before testing faces E2E

This commit is contained in:
Patrik J. Braun 2023-09-06 21:50:33 +02:00
parent fda22e8333
commit 040154502e

View File

@ -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', () => {