From 728881a3856e720adeb864fb3e925c4eb46d4aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 12 Aug 2022 12:38:55 +0200 Subject: [PATCH] Adjust cypress tests to match next/prev buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/audio.mpeg.cy.js | 4 +-- cypress/e2e/audio.ogg.cy.js | 4 +-- cypress/e2e/audios.cy.js | 10 +++--- cypress/e2e/files-shares.cy.js | 34 +++++++++---------- cypress/e2e/image-small.png.cy.js | 4 +-- cypress/e2e/image.gif.cy.js | 4 +-- cypress/e2e/image.png.cy.js | 4 +-- cypress/e2e/image.svg.cy.js | 4 +-- cypress/e2e/image.webp.cy.js | 4 +-- cypress/e2e/images-custom-list-loadmore.cy.js | 28 +++++++-------- cypress/e2e/images-custom-list.cy.js | 16 ++++----- cypress/e2e/images.cy.js | 28 +++++++-------- cypress/e2e/oddname/oddname.js | 4 +-- cypress/e2e/video.mkv.cy.js | 4 +-- cypress/e2e/video.mp4.cy.js | 4 +-- cypress/e2e/video.ogv.cy.js | 4 +-- cypress/e2e/video.webm.cy.js | 4 +-- cypress/e2e/videos.cy.js | 10 +++--- cypress/e2e/visual-regression.cy.js | 14 ++++---- 19 files changed, 94 insertions(+), 94 deletions(-) diff --git a/cypress/e2e/audio.mpeg.cy.js b/cypress/e2e/audio.mpeg.cy.js index cb5176f88..a5d54e993 100644 --- a/cypress/e2e/audio.mpeg.cy.js +++ b/cypress/e2e/audio.mpeg.cy.js @@ -64,8 +64,8 @@ describe('Open audio.mp3 in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Take screenshot', function() { diff --git a/cypress/e2e/audio.ogg.cy.js b/cypress/e2e/audio.ogg.cy.js index 98c0752b1..80573eec4 100644 --- a/cypress/e2e/audio.ogg.cy.js +++ b/cypress/e2e/audio.ogg.cy.js @@ -64,8 +64,8 @@ describe('Open audio.ogg in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Take screenshot', function() { diff --git a/cypress/e2e/audios.cy.js b/cypress/e2e/audios.cy.js index ca2c9fc94..5e8605add 100644 --- a/cypress/e2e/audios.cy.js +++ b/cypress/e2e/audios.cy.js @@ -64,8 +64,8 @@ describe('Open mp3 and ogg audio in viewer', function() { cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active audio') .should('have.attr', 'src') .and('contain', `/remote.php/dav/files/${randUser}/audio.mp3`) - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -80,13 +80,13 @@ describe('Open mp3 and ogg audio in viewer', function() { }) it('Show audio.ogg on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container audio').should('have.length', 2) cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active audio') .should('have.attr', 'src') .and('contain', `/remote.php/dav/files/${randUser}/audio.ogg`) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { diff --git a/cypress/e2e/files-shares.cy.js b/cypress/e2e/files-shares.cy.js index 6a98c6870..032a43cdd 100644 --- a/cypress/e2e/files-shares.cy.js +++ b/cypress/e2e/files-shares.cy.js @@ -92,15 +92,15 @@ describe('See shared folder with link share', function() { it('Does see next navigation arrows', function() { cy.get('body > .viewer .modal-container img').should('have.length', 2) cy.get('body > .viewer .modal-container img').should('have.attr', 'src') - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Show image2 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 3) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -111,10 +111,10 @@ describe('See shared folder with link share', function() { }) it('Show image3 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 3) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -125,10 +125,10 @@ describe('See shared folder with link share', function() { }) it('Show image4 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -139,12 +139,12 @@ describe('See shared folder with link share', function() { }) it('Show video1 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() // only 2 because we don't know if we're at the end of the slideshow, current vid and prev img cy.get('body > .viewer .modal-container img').should('have.length', 1) cy.get('body > .viewer .modal-container video').should('have.length', 1) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') cy.get('body > .viewer .modal-title').should('contain', 'video1.mp4') }) @@ -156,10 +156,10 @@ describe('See shared folder with link share', function() { }) it('Show image1 again on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { diff --git a/cypress/e2e/image-small.png.cy.js b/cypress/e2e/image-small.png.cy.js index c4162367e..3a7ca2869 100644 --- a/cypress/e2e/image-small.png.cy.js +++ b/cypress/e2e/image-small.png.cy.js @@ -64,7 +64,7 @@ describe('Open image-small.png in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) }) diff --git a/cypress/e2e/image.gif.cy.js b/cypress/e2e/image.gif.cy.js index 140e6d1ec..2ad89edc2 100644 --- a/cypress/e2e/image.gif.cy.js +++ b/cypress/e2e/image.gif.cy.js @@ -65,8 +65,8 @@ describe('Open image.gif in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Take screenshot', function() { diff --git a/cypress/e2e/image.png.cy.js b/cypress/e2e/image.png.cy.js index 53761de1e..4cb597e5f 100644 --- a/cypress/e2e/image.png.cy.js +++ b/cypress/e2e/image.png.cy.js @@ -64,7 +64,7 @@ describe('Open image.png in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) }) diff --git a/cypress/e2e/image.svg.cy.js b/cypress/e2e/image.svg.cy.js index f7859419d..2d26de285 100644 --- a/cypress/e2e/image.svg.cy.js +++ b/cypress/e2e/image.svg.cy.js @@ -65,8 +65,8 @@ describe('Open image.svg in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Have the base64 encoded value of the svg', function() { diff --git a/cypress/e2e/image.webp.cy.js b/cypress/e2e/image.webp.cy.js index 907574435..b784c0bf9 100644 --- a/cypress/e2e/image.webp.cy.js +++ b/cypress/e2e/image.webp.cy.js @@ -64,7 +64,7 @@ describe('Open image.webp in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) }) diff --git a/cypress/e2e/images-custom-list-loadmore.cy.js b/cypress/e2e/images-custom-list-loadmore.cy.js index 85cc2bd44..09b25230c 100644 --- a/cypress/e2e/images-custom-list-loadmore.cy.js +++ b/cypress/e2e/images-custom-list-loadmore.cy.js @@ -142,15 +142,15 @@ describe('Open custom list of images in viewer with pagination', function() { it('Does see next navigation arrows', function() { cy.get('body > .viewer .modal-container img').should('have.length', 2) cy.get('body > .viewer .modal-container img').should('have.attr', 'src') - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Show image2 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -161,10 +161,10 @@ describe('Open custom list of images in viewer with pagination', function() { }) it('Show image3 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 3) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -175,10 +175,10 @@ describe('Open custom list of images in viewer with pagination', function() { }) it('Show image4 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -189,10 +189,10 @@ describe('Open custom list of images in viewer with pagination', function() { }) it('Show image1 again on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { diff --git a/cypress/e2e/images-custom-list.cy.js b/cypress/e2e/images-custom-list.cy.js index 85d667762..482b7a9ff 100644 --- a/cypress/e2e/images-custom-list.cy.js +++ b/cypress/e2e/images-custom-list.cy.js @@ -107,15 +107,15 @@ describe('Open custom images list in viewer', function() { it('Does see next navigation arrows', function() { cy.get('body > .viewer .modal-container img').should('have.length', 2) cy.get('body > .viewer .modal-container img').should('have.attr', 'src') - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Show image3 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -132,10 +132,10 @@ describe('Open custom images list in viewer', function() { }) it('Show image1 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { diff --git a/cypress/e2e/images.cy.js b/cypress/e2e/images.cy.js index f656a3afd..a908dd3f5 100644 --- a/cypress/e2e/images.cy.js +++ b/cypress/e2e/images.cy.js @@ -76,15 +76,15 @@ describe('Open images in viewer', function() { // only 2 because we don't know if we're at the end of the slideshow, current img and next one cy.get('body > .viewer .modal-container img').should('have.length', 2) cy.get('body > .viewer .modal-container img').should('have.attr', 'src') - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Show image2 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 3) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -95,10 +95,10 @@ describe('Open images in viewer', function() { }) it('Show image3 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 3) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -109,11 +109,11 @@ describe('Open images in viewer', function() { }) it('Show image4 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() // only 2 because we don't know if we're at the end of the slideshow, current img and previous one cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -124,10 +124,10 @@ describe('Open images in viewer', function() { }) it('Show image1 again on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 2) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { diff --git a/cypress/e2e/oddname/oddname.js b/cypress/e2e/oddname/oddname.js index f4d79f12b..5ebe28725 100644 --- a/cypress/e2e/oddname/oddname.js +++ b/cypress/e2e/oddname/oddname.js @@ -104,8 +104,8 @@ export default function(file, type) { } function arrowsOK() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') } it(`See ${file} as ${placedName} in the list`, function() { diff --git a/cypress/e2e/video.mkv.cy.js b/cypress/e2e/video.mkv.cy.js index 7f981c9f6..84299e462 100644 --- a/cypress/e2e/video.mkv.cy.js +++ b/cypress/e2e/video.mkv.cy.js @@ -64,8 +64,8 @@ describe('Open video.mkv in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Take screenshot', function() { diff --git a/cypress/e2e/video.mp4.cy.js b/cypress/e2e/video.mp4.cy.js index e98e9b87a..0668a550b 100644 --- a/cypress/e2e/video.mp4.cy.js +++ b/cypress/e2e/video.mp4.cy.js @@ -64,8 +64,8 @@ describe('Open video1.mp4 in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Take screenshot', function() { diff --git a/cypress/e2e/video.ogv.cy.js b/cypress/e2e/video.ogv.cy.js index a4ed5b684..9b922809d 100644 --- a/cypress/e2e/video.ogv.cy.js +++ b/cypress/e2e/video.ogv.cy.js @@ -64,8 +64,8 @@ describe('Open video.ogv in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Take screenshot', function() { diff --git a/cypress/e2e/video.webm.cy.js b/cypress/e2e/video.webm.cy.js index 8ad4ad0e1..4a5d2fc13 100644 --- a/cypress/e2e/video.webm.cy.js +++ b/cypress/e2e/video.webm.cy.js @@ -64,8 +64,8 @@ describe('Open video.webm in viewer', function() { }) it('Does not see navigation arrows', function() { - cy.get('body > .viewer a.prev').should('not.be.visible') - cy.get('body > .viewer a.next').should('not.be.visible') + cy.get('body > .viewer button.prev').should('not.be.visible') + cy.get('body > .viewer button.next').should('not.be.visible') }) it('Take screenshot', function() { diff --git a/cypress/e2e/videos.cy.js b/cypress/e2e/videos.cy.js index bebd3c486..6db663c4c 100644 --- a/cypress/e2e/videos.cy.js +++ b/cypress/e2e/videos.cy.js @@ -64,8 +64,8 @@ describe('Open mp4 videos in viewer', function() { cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active video') .should('have.attr', 'src') .and('contain', `/remote.php/dav/files/${randUser}/video1.mp4`) - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -82,13 +82,13 @@ describe('Open mp4 videos in viewer', function() { }) it('Show video 2 on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container video').should('have.length', 2) cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active video') .should('have.attr', 'src') .and('contain', `/remote.php/dav/files/${randUser}/video2.mp4`) - cy.get('body > .viewer a.prev').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.prev').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { diff --git a/cypress/e2e/visual-regression.cy.js b/cypress/e2e/visual-regression.cy.js index 55e911d3b..d0e26b5d1 100644 --- a/cypress/e2e/visual-regression.cy.js +++ b/cypress/e2e/visual-regression.cy.js @@ -64,8 +64,8 @@ describe('Visual regression tests ', function() { cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active video') .should('have.attr', 'src') .and('contain', `/remote.php/dav/files/${randUser}/test-card.mp4`) - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -86,11 +86,11 @@ describe('Visual regression tests ', function() { }) it('Show second file on next', function() { - cy.get('body > .viewer a.next').click() + cy.get('body > .viewer button.next').click() cy.get('body > .viewer .modal-container img').should('have.length', 1) cy.get('body > .viewer .modal-container img').should('have.attr', 'src') - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() { @@ -112,8 +112,8 @@ describe('Visual regression tests ', function() { cy.get('body > .viewer .modal-title').should('contain', 'test-card.png') cy.get('body > .viewer .modal-container img').should('have.length', 1) cy.get('body > .viewer .modal-container img').should('have.attr', 'src') - cy.get('body > .viewer a.next').should('be.visible') - cy.get('body > .viewer a.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') + cy.get('body > .viewer button.next').should('be.visible') }) it('Does not see a loading animation', function() {