Skip to content

Commit

Permalink
πŸ’š (#2345): fix inconsistent test
Browse files Browse the repository at this point in the history
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
  • Loading branch information
Vinicius Reis committed May 25, 2022
1 parent be79048 commit d791da3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions cypress/integration/workspace.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,20 @@ describe('Workspace', function() {
.should('contain', 'Hello world')
})

it('inserts and removes a table', function() {
it.only('inserts and removes a table', function() {
cy.openWorkspace()
.type('Let\'s insert a Table')

toggleMoreActions()
submenuButton('table')
.click()
cy.getMenu()
.then($el => {
// sometimes actions can be hide
if ($el.find('[data-text-action-entry="remain"]').length) {
toggleMoreActions()
return submenuButton('table').click()
}

return menuButton('table').click()
})

cy.get('.ProseMirror').type('content')
cy.get('.ProseMirror table tr:first-child th:first-child')
Expand Down

0 comments on commit d791da3

Please sign in to comment.