diff options
author | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-05-25 21:06:01 +0300 |
---|---|---|
committer | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-05-25 22:34:52 +0300 |
commit | 4df82023b5680ec973bfde276d019dac9d6dd832 (patch) | |
tree | 02a0d7ec30aab6fd2a0f379d74e028670a742632 /cypress | |
parent | be790486d3cc46d4e3bf59aa5d90c7e463145456 (diff) |
💚 (#2345): fix inconsistent test
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/integration/workspace.spec.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cypress/integration/workspace.spec.js b/cypress/integration/workspace.spec.js index 072c2912d..b1ee8cf09 100644 --- a/cypress/integration/workspace.spec.js +++ b/cypress/integration/workspace.spec.js @@ -144,9 +144,16 @@ describe('Workspace', 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') |