cypress: fix multiuser tests after w2ui removing

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I53c5ed04a3ba3f63ebbca8f2322e34cf8f707a04
This commit is contained in:
Szymon Kłos 2024-03-29 16:09:35 +01:00 committed by Szymon Kłos
parent d9dd67e0f9
commit f2e9dee701
2 changed files with 13 additions and 13 deletions

View file

@ -28,7 +28,7 @@ describe.skip(['tagmultiuser'], 'Multiuser sheet operations', function() {
// Add one more sheet // Add one more sheet
cy.cSetActiveFrame(frameId1); cy.cSetActiveFrame(frameId1);
cy.cGet('#tb_spreadsheet-toolbar_item_insertsheet').click(); cy.cGet('#insertsheet').click();
//assert for user-1/2 //assert for user-1/2
cy.cGet('.spreadsheet-tab').should('have.length', 2); cy.cGet('.spreadsheet-tab').should('have.length', 2);
@ -123,7 +123,7 @@ describe(['tagmultiuser'], 'Check overlays after tab switching/operations', func
cy.cGet('input#addressInput').should('have.prop', 'value', 'F6'); cy.cGet('input#addressInput').should('have.prop', 'value', 'F6');
cy.cSetActiveFrame('#iframe1'); cy.cSetActiveFrame('#iframe1');
cy.cGet('#tb_spreadsheet-toolbar_item_insertsheet').click(); cy.cGet('#insertsheet').click();
// check that there is no cell view cursor; // check that there is no cell view cursor;
// in fact in the other view the new sheet has never been selected // in fact in the other view the new sheet has never been selected

View file

@ -31,13 +31,13 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
ceHelper.type('X'); ceHelper.type('X');
cy.cSetActiveFrame('#iframe2'); cy.cSetActiveFrame('#iframe2');
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', '1 word, 1 character');
cy.cSetActiveFrame('#iframe1'); cy.cSetActiveFrame('#iframe1');
writerHelper.selectAllTextOfDoc(); writerHelper.selectAllTextOfDoc();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' Selected: 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', 'Selected: 1 word, 1 character');
cy.cGet('.leaflet-layer').click(); cy.cGet('.leaflet-layer').click();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', '1 word, 1 character');
cy.cGet('.empty-deltas').then(($before) => { cy.cGet('.empty-deltas').then(($before) => {
const beforeCount = $before.text(); const beforeCount = $before.text();
@ -48,9 +48,9 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
cy.cSetActiveFrame('#iframe1'); cy.cSetActiveFrame('#iframe1');
writerHelper.selectAllTextOfDoc(); writerHelper.selectAllTextOfDoc();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' Selected: 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', 'Selected: 1 word, 1 character');
cy.cGet('.leaflet-layer').click(); cy.cGet('.leaflet-layer').click();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', '1 word, 1 character');
cy.cGet('.empty-deltas').should(($after) => { cy.cGet('.empty-deltas').should(($after) => {
expect($after.text()).to.eq(beforeCount); expect($after.text()).to.eq(beforeCount);
@ -71,13 +71,13 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
ceHelper.type('X'); ceHelper.type('X');
cy.cSetActiveFrame('#iframe2'); cy.cSetActiveFrame('#iframe2');
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', '1 word, 1 character');
cy.cSetActiveFrame('#iframe1'); cy.cSetActiveFrame('#iframe1');
writerHelper.selectAllTextOfDoc(); writerHelper.selectAllTextOfDoc();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' Selected: 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', 'Selected: 1 word, 1 character');
cy.cGet('.leaflet-layer').click(); cy.cGet('.leaflet-layer').click();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', '1 word, 1 character');
cy.cGet('.empty-deltas').then(($before) => { cy.cGet('.empty-deltas').then(($before) => {
var beforeCount = parseInt($before.text()); var beforeCount = parseInt($before.text());
@ -94,11 +94,11 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
cy.cSetActiveFrame('#iframe1'); cy.cSetActiveFrame('#iframe1');
writerHelper.selectAllTextOfDoc(); writerHelper.selectAllTextOfDoc();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' Selected: 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', 'Selected: 1 word, 1 character');
cy.cGet('.leaflet-layer').click(); cy.cGet('.leaflet-layer').click();
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' 1 word, 1 character'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', '1 word, 1 character');
ceHelper.type('X'); ceHelper.type('X');
cy.cGet('#toolbar-down #StateWordCount').should('have.text', ' 1 word, 2 characters'); cy.cGet('#toolbar-down #StateWordCount').should('have.text', '1 word, 2 characters');
cy.cGet('.empty-deltas').should(($after) => { cy.cGet('.empty-deltas').should(($after) => {
// allow one row of empty deltas, the case this protects regression against // allow one row of empty deltas, the case this protects regression against