Skip to content

Commit

Permalink
cypress fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
  • Loading branch information
Florian Steffens committed Aug 10, 2023
1 parent d9203ba commit 993b548
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/e2e/tables-table.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ describe('Manage a table', () => {

it('Update title', () => {
cy.get('.app-navigation__list').contains('to do list').click({ force: true })
cy.get('.row.first-row button').click()
cy.get('[data-cy="customTableAction"] button').click()
cy.get('.action-button__text').contains('Edit table').click()

cy.get('.modal-container input').clear().type('ToDo list')
cy.get('.modal-container button').contains('Save').click()

Expand All @@ -37,7 +39,9 @@ describe('Manage a table', () => {

it('Delete', () => {
cy.get('.app-navigation__list').contains('ToDo list').click({ force: true })
cy.get('.row.first-row button').click()
cy.get('[data-cy="customTableAction"] button').click()
cy.get('.action-button__text').contains('Edit table').click()

cy.get('.modal-container button').contains('Delete').click()
cy.get('.modal-container button').contains('I really want to delete this table!').click()

Expand Down

0 comments on commit 993b548

Please sign in to comment.