From 677f7b78569c82914eb8226ab6cfe27933fad0a0 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 6 Sep 2023 20:46:44 +0200 Subject: [PATCH] remove E2E dependency to rendered photo (server might be slow) --- test/cypress/e2e/gallery.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cypress/e2e/gallery.cy.ts b/test/cypress/e2e/gallery.cy.ts index 878405db..55001fa9 100644 --- a/test/cypress/e2e/gallery.cy.ts +++ b/test/cypress/e2e/gallery.cy.ts @@ -39,7 +39,7 @@ describe('Gallery', () => { it('Gallery should show infobar over photo', () => { cy.wait('@getContent'); // 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) { @@ -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('USA'); }); - it('Gallery should open ligthbox', () => { + it('Gallery should open lightbox', () => { cy.wait('@getContent'); // 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) {