mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Fixing e2e tests #801
This commit is contained in:
parent
e68fbbbe44
commit
81752b2a60
@ -67,7 +67,7 @@ describe('Gallery', () => {
|
||||
}
|
||||
|
||||
cy.get('.photo-container > img[alt="IMG_5910.jpg"]').click({scrollBehavior: 'center'});
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-caption').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-title').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls .faces-container > .face > .face-name').contains('Alvin the Squirrel');
|
||||
|
||||
});
|
||||
@ -105,7 +105,7 @@ describe('Gallery', () => {
|
||||
cy.get('app-gallery-grid-photo', {timeout: 10000});
|
||||
cy.get('.photo-container > img[alt="IMG_5910.jpg"]', {timeout: 10000}); //the main photo should be visible
|
||||
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-caption').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-title').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls .faces-container > .face > .face-name').contains('Alvin the Squirrel');
|
||||
|
||||
});
|
||||
@ -120,7 +120,7 @@ describe('Gallery', () => {
|
||||
cy.get('app-gallery-grid-photo', {timeout: 10000});
|
||||
cy.get('.photo-container > img[alt="IMG_1252.jpg"]', {timeout: 10000}); //the main photo should be visible
|
||||
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-caption').contains('This is a super long title with special characters -.,űáéúőpóüö');
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-title').contains('This is a super long title with special characters -.,űáéúőpóüö');
|
||||
cy.get('app-lightbox-controls .faces-container > .face > .face-name').should('not.exist');
|
||||
|
||||
});
|
||||
@ -149,7 +149,7 @@ describe('Gallery - dont wait for content load', () => {
|
||||
cy.get('app-gallery-grid-photo', {timeout: 10000});
|
||||
cy.get('.photo-container > img[alt="IMG_5910.jpg"]', {timeout: 10000}); //the main photo should be visible
|
||||
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-caption').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-title').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls .faces-container > .face > .face-name').contains('Alvin the Squirrel');
|
||||
|
||||
});
|
||||
@ -175,7 +175,7 @@ describe('Gallery - dont wait for content load', () => {
|
||||
cy.get('app-gallery-grid-photo', {timeout: 10000});
|
||||
cy.get('.photo-container > img[alt="IMG_1252.jpg"]', {timeout: 10000}); //the main photo should be visible
|
||||
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-caption').contains('This is a super long title with special characters -.,űáéúőpóüö');
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-title').contains('This is a super long title with special characters -.,űáéúőpóüö');
|
||||
cy.get('app-lightbox-controls .faces-container > .face').should('not.exist');
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user