mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Waiting for directory scanning before testing faces E2E
This commit is contained in:
parent
fda22e8333
commit
040154502e
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user