diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-12-01 10:36:52 +0100 |
---|---|---|
committer | Tamás Zolnai <zolnaitamas2000@gmail.com> | 2020-12-01 13:25:20 +0100 |
commit | a95de9a79960d10b1224c93f69f4e32f4ad26b3b (patch) | |
tree | 42afa317a66fc323d98fe1841ec056c5e39320e3 /cypress_test | |
parent | cypress: introduce interference testing for mobile tests. (diff) | |
download | online-a95de9a79960d10b1224c93f69f4e32f4ad26b3b.tar.gz online-a95de9a79960d10b1224c93f69f4e32f4ad26b3b.zip |
cypress: remove this prototype of interference testing.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibb7c84a2c701770cb4064c04223fc1fe041d624e
Diffstat (limited to 'cypress_test')
3 files changed, 1 insertions, 202 deletions
diff --git a/cypress_test/Makefile.am b/cypress_test/Makefile.am index 5bcc388c90..ce84525d5b 100644 --- a/cypress_test/Makefile.am +++ b/cypress_test/Makefile.am @@ -65,8 +65,7 @@ MULTIUSER_TESTS= \ writer/sidebar_visibility \ writer/simultaneous_typing \ calc/sheet_operations \ - impress/slide_operations \ - writer/top_toolbar_interfer + impress/slide_operations MOBILE_TEST_FILES_DONE= \ $(foreach test_file,$(MOBILE_TEST_FILES),$(MOBILE_TRACK_FOLDER)/$(test_file).done) diff --git a/cypress_test/integration_tests/multiuser/writer/top_toolbar_interfer_user1_spec.js b/cypress_test/integration_tests/multiuser/writer/top_toolbar_interfer_user1_spec.js deleted file mode 100644 index 087e24a367..0000000000 --- a/cypress_test/integration_tests/multiuser/writer/top_toolbar_interfer_user1_spec.js +++ /dev/null @@ -1,123 +0,0 @@ -/* global describe it cy beforeEach require afterEach Cypress */ - -var helper = require('../../common/helper'); -var writerHelper = require('../../common/writer_helper'); - -describe('Top toolbar interfering test: user-1.', function() { - var testFileName = 'top_toolbar_interfer.odt'; - - function checkAndRemoveComment() { - cy.get('.loleaflet-annotation-content.loleaflet-dont-break') - .should('have.text', 'Ready!'); - - cy.get('.loleaflet-annotation-menu') - .click({force: true}); - - cy.get('.context-menu-list') - .should('exist'); - - cy.contains('.context-menu-item', 'Remove') - .click({force: true}); - - cy.get('.loleaflet-annotation-content') - .should('not.exist'); - } - - beforeEach(function() { - helper.beforeAll(testFileName, 'writer'); - - cy.get('#tb_actionbar_item_userlist', { timeout: Cypress.config('defaultCommandTimeout') * 2.0 }) - .should('be.visible'); - - // Wait for user-1's comment and remove it. - checkAndRemoveComment(); - - writerHelper.selectAllTextOfDoc(); - }); - - afterEach(function() { - helper.afterAll(testFileName); - }); - - it('Apply bold font.', function() { - cy.get('#tb_editbar_item_bold') - .click(); - - writerHelper.selectAllTextOfDoc(); - - cy.get('#copy-paste-container p b') - .should('exist'); - }); - - it('Apply italic font.', function() { - cy.get('#tb_editbar_item_italic') - .click(); - - writerHelper.selectAllTextOfDoc(); - - cy.get('#copy-paste-container p i') - .should('exist'); - }); - - it('Apply underline.', function() { - cy.get('#tb_editbar_item_underline') - .click(); - writerHelper.selectAllTextOfDoc(); - - cy.get('#copy-paste-container p u') - .should('exist'); - }); - - it('Apply strikethrough.', function() { - cy.get('#tb_editbar_item_strikeout') - .click(); - - writerHelper.selectAllTextOfDoc(); - - cy.get('#copy-paste-container p strike') - .should('exist'); - }); - - it('Apply left alignment.', function() { - cy.get('#tb_editbar_item_centerpara') - .click(); - - writerHelper.selectAllTextOfDoc(); - - cy.get('#copy-paste-container p') - .should('have.attr', 'align', 'center'); - - cy.get('#tb_editbar_item_leftpara') - .click(); - - writerHelper.selectAllTextOfDoc(); - - cy.get('#copy-paste-container p') - .should('have.attr', 'align', 'left'); - }); - - it('Insert comment.', function() { - cy.get('#toolbar-up .w2ui-scroll-right') - .click(); - - cy.get('#tb_editbar_item_insertannotation') - .click(); - - // Comment insertion dialog is opened - cy.get('.loleaflet-annotation-table') - .should('exist'); - - // Add some comment - cy.get('.loleaflet-annotation-edit:nth-of-type(2) .loleaflet-annotation-textarea') - .type('some text'); - - cy.get('#annotation-save') - .click(); - - cy.get('.loleaflet-annotation') - .should('exist'); - - cy.get('.loleaflet-annotation-content.loleaflet-dont-break') - .should('have.text', 'some text'); - }); -}); diff --git a/cypress_test/integration_tests/multiuser/writer/top_toolbar_interfer_user2_spec.js b/cypress_test/integration_tests/multiuser/writer/top_toolbar_interfer_user2_spec.js deleted file mode 100644 index e474adea34..0000000000 --- a/cypress_test/integration_tests/multiuser/writer/top_toolbar_interfer_user2_spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/* global describe it cy require Cypress */ - -var helper = require('../../common/helper'); - -describe('Top toolbar interfering test: user-2.', function() { - function insertComment() { - cy.get('#toolbar-up .w2ui-scroll-right') - .click(); - - cy.get('#tb_editbar_item_insertannotation') - .click(); - - cy.get('.loleaflet-annotation-edit:nth-of-type(2) .loleaflet-annotation-textarea') - .type('Ready!'); - - cy.get('#annotation-save') - .click(); - } - - it('Spaming keyboard input.', function() { - cy.waitUntil(function() { - // Wait for the user-1 to open the document - cy.visit('http://admin:admin@localhost:' + - Cypress.env('SERVER_PORT') + - '/loleaflet/dist/admin/admin.html'); - - cy.get('#uptime') - .should('not.have.text', '0'); - - cy.get('#doclist > tr > td').eq(3) - .should('not.be.empty') - .invoke('text') - .then(function(text) { - - // We open the same document - helper.beforeAll(text, 'writer', true); - }); - - cy.get('#tb_actionbar_item_userlist', { timeout: Cypress.config('defaultCommandTimeout') * 2.0 }) - .should('be.visible'); - - // Leave a comment to make user-1 to start the test. - insertComment(); - - // We are doing some keyboard input activity here. - cy.waitUntil(function() { - for (var i = 0; i < 5; i++) { - helper.typeIntoDocument('{rightArrow}'); - } - - return cy.get('#tb_actionbar_item_userlist') - .then(function(userlist) { - return !Cypress.dom.isVisible(userlist[0]); - }); - }, {timeout: 60000}); - - // Check admin console, whether the first user is still active - // If there is no more document we can assume the test is finished. - cy.visit('http://admin:admin@localhost:' + - Cypress.env('SERVER_PORT') + - '/loleaflet/dist/admin/admin.html'); - - cy.get('#uptime') - .should('not.have.text', '0'); - - // Wait some time for our instance to be closed. - cy.wait(5000); - - return cy.get('#doclist') - .invoke('text') - .then(function(text) { - return text.length === 0; - }); - - }, {timeout: 60000, log: false}); - }); -}); |