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:
parent
d9dd67e0f9
commit
f2e9dee701
2 changed files with 13 additions and 13 deletions
|
@ -28,7 +28,7 @@ describe.skip(['tagmultiuser'], 'Multiuser sheet operations', function() {
|
|||
|
||||
// Add one more sheet
|
||||
cy.cSetActiveFrame(frameId1);
|
||||
cy.cGet('#tb_spreadsheet-toolbar_item_insertsheet').click();
|
||||
cy.cGet('#insertsheet').click();
|
||||
|
||||
//assert for user-1/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.cSetActiveFrame('#iframe1');
|
||||
cy.cGet('#tb_spreadsheet-toolbar_item_insertsheet').click();
|
||||
cy.cGet('#insertsheet').click();
|
||||
|
||||
// check that there is no cell view cursor;
|
||||
// in fact in the other view the new sheet has never been selected
|
||||
|
|
|
@ -31,13 +31,13 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
|
|||
ceHelper.type('X');
|
||||
|
||||
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');
|
||||
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('#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) => {
|
||||
const beforeCount = $before.text();
|
||||
|
@ -48,9 +48,9 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
|
|||
|
||||
cy.cSetActiveFrame('#iframe1');
|
||||
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('#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) => {
|
||||
expect($after.text()).to.eq(beforeCount);
|
||||
|
@ -71,13 +71,13 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
|
|||
ceHelper.type('X');
|
||||
|
||||
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');
|
||||
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('#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) => {
|
||||
var beforeCount = parseInt($before.text());
|
||||
|
@ -94,11 +94,11 @@ describe(['tagmultiuser'], 'Joining a document should not trigger an invalidatio
|
|||
|
||||
cy.cSetActiveFrame('#iframe1');
|
||||
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('#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');
|
||||
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) => {
|
||||
// allow one row of empty deltas, the case this protects regression against
|
||||
|
|
Loading…
Reference in a new issue