diff options
author | Rash419 <rashesh.padia@collabora.com> | 2022-01-26 17:59:48 +0530 |
---|---|---|
committer | Rashesh Padia <rasheshpadia419@gmail.com> | 2022-01-26 19:19:03 +0530 |
commit | 8a83e5c2a8fc19f7c458fa702dd79a926f785f08 (patch) | |
tree | b6c61ec952b70981830c48ec3293de2cd43f49ef /cypress_test/integration_tests | |
parent | cypress: added new tests (diff) | |
download | online-8a83e5c2a8fc19f7c458fa702dd79a926f785f08.tar.gz online-8a83e5c2a8fc19f7c458fa702dd79a926f785f08.zip |
cypress: fix: input element getting detached
*waitUntilIdle make sure that element remains attached to the DOM
*removed a specific configuration for multiuser tests in makefile and
now it follows cypress.json config
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2bfd22ef0b4d8306b944d772e3536206a207e00c
Diffstat (limited to 'cypress_test/integration_tests')
-rw-r--r-- | cypress_test/integration_tests/desktop/calc/image_operation_spec.js | 6 | ||||
-rw-r--r-- | cypress_test/integration_tests/desktop/writer/image_operation_spec.js | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/cypress_test/integration_tests/desktop/calc/image_operation_spec.js b/cypress_test/integration_tests/desktop/calc/image_operation_spec.js index 6df4604293..581789de27 100644 --- a/cypress_test/integration_tests/desktop/calc/image_operation_spec.js +++ b/cypress_test/integration_tests/desktop/calc/image_operation_spec.js @@ -33,9 +33,13 @@ describe('Image Operation Tests', function() { cy.contains('.ui-expander-label', 'Position and Size') .click(); + helper.waitUntilIdle('#selectwidth input'); + cy.get('#selectwidth input').clear({force:true}) .type('3{enter}', {force:true}); + helper.waitUntilIdle('#selectheight input'); + cy.get('#selectheight input').clear({force:true}) .type('2{enter}', {force:true}); @@ -44,6 +48,8 @@ describe('Image Operation Tests', function() { //Keep ratio checked cy.get('#ratio input').check(); + helper.waitUntilIdle('#selectheight input'); + cy.get('#selectheight input').clear({force:true}) .type('5{enter}', {force:true}); diff --git a/cypress_test/integration_tests/desktop/writer/image_operation_spec.js b/cypress_test/integration_tests/desktop/writer/image_operation_spec.js index 5bf5a2db63..650cf00c44 100644 --- a/cypress_test/integration_tests/desktop/writer/image_operation_spec.js +++ b/cypress_test/integration_tests/desktop/writer/image_operation_spec.js @@ -30,9 +30,13 @@ describe('Image Operation Tests', function() { //when Keep ratio is unchecked assertImageSize(248, 63); + helper.waitUntilIdle('#selectwidth input'); + cy.get('#selectwidth input').clear({force:true}) .type('3{enter}', {force:true}); + helper.waitUntilIdle('#selectheight input'); + cy.get('#selectheight input').clear({force:true}) .type('2{enter}', {force:true}); @@ -41,6 +45,8 @@ describe('Image Operation Tests', function() { //Keep ratio checked cy.get('#ratio input').check(); + helper.waitUntilIdle('#selectheight input'); + cy.get('#selectheight input').clear({force:true}) .type('5{enter}', {force:true}); |