Skip to content

Commit 76baa06

Browse files
max-nextcloudmejo-
authored andcommitted
chore(tests): adjust to new nc/dialogs markup
Signed-off-by: Max <max@nextcloud.com>
1 parent 4061256 commit 76baa06

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cypress/e2e/attachments.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('Test all attachment insertion methods', () => {
195195
cy.get('.file-picker [data-filename="a"]').click()
196196
cy.get('.file-picker [data-filename="a.png"]').click()
197197

198-
cy.get('.dialog__actions button.button-vue--vue-primary').click()
198+
cy.get('.dialog__actions button.button-vue--primary').click()
199199

200200
return waitForRequestAndCheckAttachment(requestAlias)
201201
})
@@ -205,14 +205,14 @@ describe('Test all attachment insertion methods', () => {
205205
cy.intercept({ method: 'POST', url: '**/filepath' }).as(requestAlias)
206206

207207
cy.log('Go back from home to sub folder')
208-
cy.get('.file-picker nav [title="Home"]').click()
208+
cy.get('.file-picker nav [aria-label="All files"]').click()
209209
cy.get('.file-picker [data-filename="sub"]').click()
210210

211211
cy.log('Go to sub folder (b)')
212212
cy.get('.file-picker [data-filename="b"]').click()
213213
cy.get('.file-picker [data-filename="b.png"]').click()
214214

215-
cy.get('.dialog__actions button.button-vue--vue-primary').click()
215+
cy.get('.dialog__actions button.button-vue--primary').click()
216216

217217
return waitForRequestAndCheckAttachment(requestAlias)
218218
})
@@ -224,12 +224,12 @@ describe('Test all attachment insertion methods', () => {
224224
cy.intercept({ method: 'POST', url: '**/filepath' }).as(requestAlias)
225225

226226
cy.log('Go back to home')
227-
cy.get('.file-picker nav [title="Home"]').click()
227+
cy.get('.file-picker nav [aria-label="All files"]').click()
228228

229229
cy.log('Select the file in the filepicker')
230230
cy.get('.file-picker [data-filename="github.png"]').click()
231231
cy.log('Click OK in the filepicker')
232-
cy.get('.dialog__actions button.button-vue--vue-primary').click()
232+
cy.get('.dialog__actions button.button-vue--primary').click()
233233

234234
return waitForRequestAndCheckAttachment(requestAlias)
235235
})

0 commit comments

Comments
 (0)