Skip to content

Commit

Permalink
Add live photo support base on files metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jan 4, 2024
1 parent 14dcb39 commit bf710a3
Show file tree
Hide file tree
Showing 15 changed files with 319 additions and 137 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/images/images-custom-list-loadmore.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('Open custom list of images in viewer with pagination', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down Expand Up @@ -191,7 +191,7 @@ describe('Open custom list of images in viewer with pagination', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -211,7 +211,7 @@ describe('Open custom list of images in viewer with pagination', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/images/images-custom-list.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -128,7 +128,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -147,7 +147,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -166,7 +166,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down
10 changes: 5 additions & 5 deletions cypress/e2e/images/images.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down Expand Up @@ -97,7 +97,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -117,7 +117,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -138,7 +138,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -158,7 +158,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/mixins/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function(fileName = 'image1.jpg', mimeType = 'image/jpeg', source
})

it(`The image source is the ${source ? 'remote' : 'preview'} url`, function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', source ?? '/index.php/core/preview')
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/non-dav-files.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('Open non-dav files in viewer', function() {
})

it('The image source is the remote url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', source)
})
Expand Down
Loading

0 comments on commit bf710a3

Please sign in to comment.