Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cypress/e2e/attachments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe('Test all attachment insertion methods', () => {
cy.get('.file-picker [data-filename="a"]').click()
cy.get('.file-picker [data-filename="a.png"]').click()

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

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

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

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

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

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

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

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

return waitForRequestAndCheckAttachment(requestAlias)
})
Expand Down
Loading
Loading