Skip to content

Commit 97eb4ef

Browse files
committed
A
1 parent 2efc9e4 commit 97eb4ef

20 files changed

+102
-102
lines changed

cypress/e2e/audio.mpeg.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ describe('Open audio.mp3 in viewer', function() {
6464
})
6565

6666
it('Does not see navigation arrows', function() {
67-
cy.get('body > .viewer a.prev').should('not.be.visible')
68-
cy.get('body > .viewer a.next').should('not.be.visible')
67+
cy.get('body > .viewer button.prev').should('not.be.visible')
68+
cy.get('body > .viewer button.next').should('not.be.visible')
6969
})
7070

7171
it('Take screenshot', function() {

cypress/e2e/audio.ogg.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ describe('Open audio.ogg in viewer', function() {
6464
})
6565

6666
it('Does not see navigation arrows', function() {
67-
cy.get('body > .viewer a.prev').should('not.be.visible')
68-
cy.get('body > .viewer a.next').should('not.be.visible')
67+
cy.get('body > .viewer button.prev').should('not.be.visible')
68+
cy.get('body > .viewer button.next').should('not.be.visible')
6969
})
7070

7171
it('Take screenshot', function() {

cypress/e2e/audios.cy.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ describe('Open mp3 and ogg audio in viewer', function() {
6464
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active audio')
6565
.should('have.attr', 'src')
6666
.and('contain', `/remote.php/dav/files/${randUser}/audio.mp3`)
67-
cy.get('body > .viewer a.next').should('be.visible')
68-
cy.get('body > .viewer a.next').should('be.visible')
67+
cy.get('body > .viewer button.next').should('be.visible')
68+
cy.get('body > .viewer button.next').should('be.visible')
6969
})
7070

7171
it('Does not see a loading animation', function() {
@@ -80,13 +80,13 @@ describe('Open mp3 and ogg audio in viewer', function() {
8080
})
8181

8282
it('Show audio.ogg on next', function() {
83-
cy.get('body > .viewer a.next').click()
83+
cy.get('body > .viewer button.next').click()
8484
cy.get('body > .viewer .modal-container audio').should('have.length', 2)
8585
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active audio')
8686
.should('have.attr', 'src')
8787
.and('contain', `/remote.php/dav/files/${randUser}/audio.ogg`)
88-
cy.get('body > .viewer a.prev').should('be.visible')
89-
cy.get('body > .viewer a.next').should('be.visible')
88+
cy.get('body > .viewer button.prev').should('be.visible')
89+
cy.get('body > .viewer button.next').should('be.visible')
9090
})
9191

9292
it('Does not see a loading animation', function() {

cypress/e2e/files-shares.cy.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ describe('See shared folder with link share', function() {
9292
it('Does see next navigation arrows', function() {
9393
cy.get('body > .viewer .modal-container img').should('have.length', 2)
9494
cy.get('body > .viewer .modal-container img').should('have.attr', 'src')
95-
cy.get('body > .viewer a.next').should('be.visible')
96-
cy.get('body > .viewer a.next').should('be.visible')
95+
cy.get('body > .viewer button.next').should('be.visible')
96+
cy.get('body > .viewer button.next').should('be.visible')
9797
})
9898

9999
it('Show image2 on next', function() {
100-
cy.get('body > .viewer a.next').click()
100+
cy.get('body > .viewer button.next').click()
101101
cy.get('body > .viewer .modal-container img').should('have.length', 3)
102-
cy.get('body > .viewer a.prev').should('be.visible')
103-
cy.get('body > .viewer a.next').should('be.visible')
102+
cy.get('body > .viewer button.prev').should('be.visible')
103+
cy.get('body > .viewer button.next').should('be.visible')
104104
})
105105

106106
it('Does not see a loading animation', function() {
@@ -111,10 +111,10 @@ describe('See shared folder with link share', function() {
111111
})
112112

113113
it('Show image3 on next', function() {
114-
cy.get('body > .viewer a.next').click()
114+
cy.get('body > .viewer button.next').click()
115115
cy.get('body > .viewer .modal-container img').should('have.length', 3)
116-
cy.get('body > .viewer a.prev').should('be.visible')
117-
cy.get('body > .viewer a.next').should('be.visible')
116+
cy.get('body > .viewer button.prev').should('be.visible')
117+
cy.get('body > .viewer button.next').should('be.visible')
118118
})
119119

120120
it('Does not see a loading animation', function() {
@@ -125,10 +125,10 @@ describe('See shared folder with link share', function() {
125125
})
126126

127127
it('Show image4 on next', function() {
128-
cy.get('body > .viewer a.next').click()
128+
cy.get('body > .viewer button.next').click()
129129
cy.get('body > .viewer .modal-container img').should('have.length', 2)
130-
cy.get('body > .viewer a.prev').should('be.visible')
131-
cy.get('body > .viewer a.next').should('be.visible')
130+
cy.get('body > .viewer button.prev').should('be.visible')
131+
cy.get('body > .viewer button.next').should('be.visible')
132132
})
133133

134134
it('Does not see a loading animation', function() {
@@ -139,12 +139,12 @@ describe('See shared folder with link share', function() {
139139
})
140140

141141
it('Show video1 on next', function() {
142-
cy.get('body > .viewer a.next').click()
142+
cy.get('body > .viewer button.next').click()
143143
// only 2 because we don't know if we're at the end of the slideshow, current vid and prev img
144144
cy.get('body > .viewer .modal-container img').should('have.length', 1)
145145
cy.get('body > .viewer .modal-container video').should('have.length', 1)
146-
cy.get('body > .viewer a.prev').should('be.visible')
147-
cy.get('body > .viewer a.next').should('be.visible')
146+
cy.get('body > .viewer button.prev').should('be.visible')
147+
cy.get('body > .viewer button.next').should('be.visible')
148148
cy.get('body > .viewer .modal-title').should('contain', 'video1.mp4')
149149
})
150150

@@ -156,10 +156,10 @@ describe('See shared folder with link share', function() {
156156
})
157157

158158
it('Show image1 again on next', function() {
159-
cy.get('body > .viewer a.next').click()
159+
cy.get('body > .viewer button.next').click()
160160
cy.get('body > .viewer .modal-container img').should('have.length', 2)
161-
cy.get('body > .viewer a.prev').should('be.visible')
162-
cy.get('body > .viewer a.next').should('be.visible')
161+
cy.get('body > .viewer button.prev').should('be.visible')
162+
cy.get('body > .viewer button.next').should('be.visible')
163163
})
164164

165165
it('Does not see a loading animation', function() {

cypress/e2e/image-small.png.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Open image-small.png in viewer', function() {
6464
})
6565

6666
it('Does not see navigation arrows', function() {
67-
cy.get('body > .viewer a.prev').should('not.be.visible')
68-
cy.get('body > .viewer a.next').should('not.be.visible')
67+
cy.get('body > .viewer button.prev').should('not.be.visible')
68+
cy.get('body > .viewer button.next').should('not.be.visible')
6969
})
7070
})

cypress/e2e/image.gif.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ describe('Open image.gif in viewer', function() {
6565
})
6666

6767
it('Does not see navigation arrows', function() {
68-
cy.get('body > .viewer a.prev').should('not.be.visible')
69-
cy.get('body > .viewer a.next').should('not.be.visible')
68+
cy.get('body > .viewer button.prev').should('not.be.visible')
69+
cy.get('body > .viewer button.next').should('not.be.visible')
7070
})
7171

7272
it('Take screenshot', function() {

cypress/e2e/image.png.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Open image.png in viewer', function() {
6464
})
6565

6666
it('Does not see navigation arrows', function() {
67-
cy.get('body > .viewer a.prev').should('not.be.visible')
68-
cy.get('body > .viewer a.next').should('not.be.visible')
67+
cy.get('body > .viewer button.prev').should('not.be.visible')
68+
cy.get('body > .viewer button.next').should('not.be.visible')
6969
})
7070
})

cypress/e2e/image.svg.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ describe('Open image.svg in viewer', function() {
6565
})
6666

6767
it('Does not see navigation arrows', function() {
68-
cy.get('body > .viewer a.prev').should('not.be.visible')
69-
cy.get('body > .viewer a.next').should('not.be.visible')
68+
cy.get('body > .viewer button.prev').should('not.be.visible')
69+
cy.get('body > .viewer button.next').should('not.be.visible')
7070
})
7171

7272
it('Have the base64 encoded value of the svg', function() {

cypress/e2e/image.webp.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Open image.webp in viewer', function() {
6464
})
6565

6666
it('Does not see navigation arrows', function() {
67-
cy.get('body > .viewer a.prev').should('not.be.visible')
68-
cy.get('body > .viewer a.next').should('not.be.visible')
67+
cy.get('body > .viewer button.prev').should('not.be.visible')
68+
cy.get('body > .viewer button.next').should('not.be.visible')
6969
})
7070
})

cypress/e2e/images-custom-list-loadmore.cy.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('Open custom list of images in viewer with pagination', function() {
7272
{
7373
basename: 'image1.jpg',
7474
filename: '/image1.jpg',
75-
hasPreview: true,
75+
hbutton.preview: true,
7676
fileid: parseInt(fileID1),
7777
mime: 'image/jpeg',
7878
permissions: 'RWD',
@@ -81,7 +81,7 @@ describe('Open custom list of images in viewer with pagination', function() {
8181
{
8282
basename: 'image2.jpg',
8383
filename: '/image2.jpg',
84-
hasPreview: true,
84+
hbutton.preview: true,
8585
fileid: parseInt(fileID2),
8686
mime: 'image/jpeg',
8787
permissions: 'RWD',
@@ -100,7 +100,7 @@ describe('Open custom list of images in viewer with pagination', function() {
100100
{
101101
basename: 'image3.jpg',
102102
filename: '/image3.jpg',
103-
hasPreview: true,
103+
hbutton.preview: true,
104104
fileid: parseInt(fileID3),
105105
mime: 'image/jpeg',
106106
permissions: 'RWD',
@@ -109,7 +109,7 @@ describe('Open custom list of images in viewer with pagination', function() {
109109
{
110110
basename: 'image4.jpg',
111111
filename: '/image4.jpg',
112-
hasPreview: true,
112+
hbutton.preview: true,
113113
fileid: parseInt(fileID4),
114114
mime: 'image/jpeg',
115115
permissions: 'RWD',
@@ -142,15 +142,15 @@ describe('Open custom list of images in viewer with pagination', function() {
142142
it('Does see next navigation arrows', function() {
143143
cy.get('body > .viewer .modal-container img').should('have.length', 2)
144144
cy.get('body > .viewer .modal-container img').should('have.attr', 'src')
145-
cy.get('body > .viewer a.next').should('be.visible')
146-
cy.get('body > .viewer a.next').should('be.visible')
145+
cy.get('body > .viewer button.next').should('be.visible')
146+
cy.get('body > .viewer button.next').should('be.visible')
147147
})
148148

149149
it('Show image2 on next', function() {
150-
cy.get('body > .viewer a.next').click()
150+
cy.get('body > .viewer button.next').click()
151151
cy.get('body > .viewer .modal-container img').should('have.length', 2)
152-
cy.get('body > .viewer a.prev').should('be.visible')
153-
cy.get('body > .viewer a.next').should('be.visible')
152+
cy.get('body > .viewer button.prev').should('be.visible')
153+
cy.get('body > .viewer button.next').should('be.visible')
154154
})
155155

156156
it('Does not see a loading animation', function() {
@@ -161,10 +161,10 @@ describe('Open custom list of images in viewer with pagination', function() {
161161
})
162162

163163
it('Show image3 on next', function() {
164-
cy.get('body > .viewer a.next').click()
164+
cy.get('body > .viewer button.next').click()
165165
cy.get('body > .viewer .modal-container img').should('have.length', 3)
166-
cy.get('body > .viewer a.prev').should('be.visible')
167-
cy.get('body > .viewer a.next').should('be.visible')
166+
cy.get('body > .viewer button.prev').should('be.visible')
167+
cy.get('body > .viewer button.next').should('be.visible')
168168
})
169169

170170
it('Does not see a loading animation', function() {
@@ -175,10 +175,10 @@ describe('Open custom list of images in viewer with pagination', function() {
175175
})
176176

177177
it('Show image4 on next', function() {
178-
cy.get('body > .viewer a.next').click()
178+
cy.get('body > .viewer button.next').click()
179179
cy.get('body > .viewer .modal-container img').should('have.length', 2)
180-
cy.get('body > .viewer a.prev').should('be.visible')
181-
cy.get('body > .viewer a.next').should('be.visible')
180+
cy.get('body > .viewer button.prev').should('be.visible')
181+
cy.get('body > .viewer button.next').should('be.visible')
182182
})
183183

184184
it('Does not see a loading animation', function() {
@@ -189,10 +189,10 @@ describe('Open custom list of images in viewer with pagination', function() {
189189
})
190190

191191
it('Show image1 again on next', function() {
192-
cy.get('body > .viewer a.next').click()
192+
cy.get('body > .viewer button.next').click()
193193
cy.get('body > .viewer .modal-container img').should('have.length', 2)
194-
cy.get('body > .viewer a.prev').should('be.visible')
195-
cy.get('body > .viewer a.next').should('be.visible')
194+
cy.get('body > .viewer button.prev').should('be.visible')
195+
cy.get('body > .viewer button.next').should('be.visible')
196196
})
197197

198198
it('Does not see a loading animation', function() {

0 commit comments

Comments
 (0)