1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

remove E2E dependency to rendered photo (server might be slow)

This commit is contained in:
Patrik J. Braun 2023-09-06 20:46:44 +02:00
parent c78dc6f350
commit 677f7b7856

View File

@ -39,7 +39,7 @@ describe('Gallery', () => {
it('Gallery should show infobar over photo', () => { it('Gallery should show infobar over photo', () => {
cy.wait('@getContent'); cy.wait('@getContent');
// contains a folder // contains a folder
cy.get(':nth-child(1) > .button > .photo-container'); cy.get('app-gallery-directories.directories > app-gallery-directory > .button > .photo-container');
for (let i = 0; i < 5; ++i) { for (let i = 0; i < 5; ++i) {
@ -56,10 +56,10 @@ describe('Gallery', () => {
cy.get('.photo-container > .info > .photo-keywords a').contains('Alvin the Squirrel'); cy.get('.photo-container > .info > .photo-keywords a').contains('Alvin the Squirrel');
cy.get('.photo-container > .info > .photo-keywords a').contains('USA'); cy.get('.photo-container > .info > .photo-keywords a').contains('USA');
}); });
it('Gallery should open ligthbox', () => { it('Gallery should open lightbox', () => {
cy.wait('@getContent'); cy.wait('@getContent');
// contains a folder // contains a folder
cy.get(':nth-child(1) > .button > .photo-container'); cy.get('app-gallery-directories.directories > app-gallery-directory > .button > .photo-container');
for (let i = 0; i < 5; ++i) { for (let i = 0; i < 5; ++i) {