diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-03-11 13:14:43 +0100 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2023-03-14 10:31:26 +0100 |
commit | 243bb8f3f0ef538d58b16be4bfc83144c9d209cc (patch) | |
tree | 1e78c4e8b2bb79384991b0d3504e00749cab1600 /cypress_test/integration_tests/desktop/writer | |
parent | jsdialog: set text for textview after every key press (diff) | |
download | online-243bb8f3f0ef538d58b16be4bfc83144c9d209cc.tar.gz online-243bb8f3f0ef538d58b16be4bfc83144c9d209cc.zip |
cypress: adjust file description to new typing
we send value on every key press now, but core still
sends updates back, after we update core to not notify
us with the same value it can be reverted
this prevents us from having incorrect text when typing long
sentences and receiving updates with delay
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If87c3f1c83018920dfaa8f3c31f567b25df27c61
Diffstat (limited to 'cypress_test/integration_tests/desktop/writer')
-rw-r--r-- | cypress_test/integration_tests/desktop/writer/file_properties_spec.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cypress_test/integration_tests/desktop/writer/file_properties_spec.js b/cypress_test/integration_tests/desktop/writer/file_properties_spec.js index 5277014883..5a216f68ca 100644 --- a/cypress_test/integration_tests/desktop/writer/file_properties_spec.js +++ b/cypress_test/integration_tests/desktop/writer/file_properties_spec.js @@ -26,7 +26,14 @@ describe('File Property Tests', function() { // sometimes it doesn't finish typing helper.waitUntilIdle('#title.ui-edit'); - cy.get('#comments.ui-textarea').type('New Comments'); + // Fixme: type now char by char because we receive update messages + // can be reverted after core update + cy.get('#comments.ui-textarea').type('N'); + cy.wait(500); + cy.get('#comments.ui-textarea').type('e'); + cy.wait(500); + cy.get('#comments.ui-textarea').type('w'); + cy.wait(500); helper.waitUntilIdle('#comments.ui-textarea'); @@ -39,7 +46,7 @@ describe('File Property Tests', function() { cy.get('#description-tab-label').click(); cy.get('#title.ui-edit').should('have.value', 'New Title'); - cy.get('#comments.ui-textarea').should('have.value', 'New Comments'); + cy.get('#comments.ui-textarea').should('have.value', 'New'); helper.clickOnIdle('#cancel.ui-pushbutton'); }); |