mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
parent
789c54a23f
commit
03bad354ef
@ -405,7 +405,7 @@ export class GalleryGridComponent
|
||||
// so not required to render more, but the scrollbar does not trigger more photos to render
|
||||
// (on lightbox navigation)
|
||||
while (
|
||||
(this.mediaToRender.length - 1 < groupIndex &&
|
||||
(this.mediaToRender.length - 1 <= groupIndex ||
|
||||
this.mediaToRender[this.mediaToRender.length - 1]?.media?.length < mediaIndex) &&
|
||||
this.renderARow() !== null
|
||||
// eslint-disable-next-line no-empty
|
||||
|
@ -81,8 +81,8 @@ describe('Gallery', () => {
|
||||
it('Gallery should auto open lightbox for IMG_1252.jpg', () => {
|
||||
cy.visit('/gallery/?p=IMG_1252.jpg');
|
||||
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-caption').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls .faces-container > .face > .face-name').contains('Alvin the Squirrel');
|
||||
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 .faces-container > .face > .face-name').should('not.exist');
|
||||
|
||||
});
|
||||
});
|
||||
@ -118,8 +118,8 @@ describe('Gallery - dont wait for content load', () => {
|
||||
|
||||
cy.visit('/gallery/?p=IMG_1252.jpg');
|
||||
|
||||
cy.get('app-lightbox-controls > #controllers-container > .controls-caption').contains('Squirrel at berkely');
|
||||
cy.get('app-lightbox-controls .faces-container > .face > .face-name').contains('Alvin the Squirrel');
|
||||
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 .faces-container > .face').should('not.exist');
|
||||
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user