Skip to content
Merged
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
3 changes: 2 additions & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Cypress.Commands.add('login', (user, password, { route, onBeforeLoad } = {}) =>
cy.visit(route)
cy.get('input[name=user]').type(user)
cy.get('input[name=password]').type(password)
cy.get('.submit-wrapper input[type=submit]').click()
cy.get('form[name=login] button[type=submit]').click()
cy.url().should('include', route)
})
// in case the session already existed but we are on a different route...
Expand Down Expand Up @@ -227,6 +227,7 @@ Cypress.Commands.add('getFile', fileName => {
Cypress.Commands.add('deleteFile', fileName => {
cy.get(`.files-fileList tr[data-file="${fileName}"] a.name .action-menu`).click()
cy.get(`.files-fileList tr[data-file="${fileName}"] a.name + .popovermenu .action-delete`).click()
cy.get(`.files-fileList tr[data-file="${fileName}"]`).should('not.exist')
})

Cypress.Commands.add('getEditor', () => {
Expand Down