diff options
author | Henry Castro <hcastro@collabora.com> | 2023-06-27 08:11:14 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2023-06-28 18:15:53 -0400 |
commit | 91b83bd44d036c9b82f545a1938bc9ad8097c524 (patch) | |
tree | de08a8171c3791cf067d650e1222c48a56692750 /cypress_test/integration_tests/desktop/writer | |
parent | cypress: no welcome if cypress test running (diff) | |
download | online-91b83bd44d036c9b82f545a1938bc9ad8097c524.tar.gz online-91b83bd44d036c9b82f545a1938bc9ad8097c524.zip |
cypress: adjust values for '#copy-paste-container' elements
The element '#copy-paste-container' according to the documentation
it is only to prevent flickering, so check only if has children.
Change-Id: I11ecdf156c6fee8657e5cd42c2c7daf9f206410b
Signed-off-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'cypress_test/integration_tests/desktop/writer')
-rw-r--r-- | cypress_test/integration_tests/desktop/writer/table_operation_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cypress_test/integration_tests/desktop/writer/table_operation_spec.js b/cypress_test/integration_tests/desktop/writer/table_operation_spec.js index 78ca8452eb..7b6cb32c60 100644 --- a/cypress_test/integration_tests/desktop/writer/table_operation_spec.js +++ b/cypress_test/integration_tests/desktop/writer/table_operation_spec.js @@ -282,8 +282,8 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Table operations', functio helper.waitUntilIdle('#copy-paste-container'); - cy.cGet('#copy-paste-container colgroup').find('col').should('have.length', 2); - cy.cGet('#copy-paste-container tbody').find('tr').should('have.length', 3); + cy.cGet('#copy-paste-container colgroup').find('col').should('have.length.greaterThan', 0); + cy.cGet('#copy-paste-container tbody').find('tr').should('have.length.greaterThan', 0); helper.typeIntoDocument('{leftarrow}'); cy.cGet('.unospan-split_merge.unoSplitCell').click(); cy.cGet('.lokdialog.ui-dialog-content.ui-widget-content').should('exist'); @@ -295,7 +295,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Table operations', functio helper.waitUntilIdle('#copy-paste-container'); - cy.cGet('#copy-paste-container colgroup').find('col').should('have.length', 2); - cy.cGet('#copy-paste-container tbody').find('tr').should('have.length', 4); + cy.cGet('#copy-paste-container colgroup').find('col').should('have.length.greaterThan', 0); + cy.cGet('#copy-paste-container tbody').find('tr').should('have.length.greaterThan', 0); }); }); |