cypress: avoid "detached from DOM" failure in statusbar tests.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I48696c4b7bba68b176ab948dcac9d7728a9c7831
This commit is contained in:
Tamás Zolnai 2021-03-03 14:08:19 +01:00 committed by Tamás Zolnai
parent fd481bf669
commit d4f4abde02

View file

@ -23,14 +23,12 @@ describe('Statubar tests.', function() {
cy.get('#StatusDocPos')
.should('have.text', 'Sheet 1 of 2');
cy.contains('.spreadsheet-tab', 'Sheet2')
.click();
helper.clickOnIdle('.spreadsheet-tab', 'Sheet2');
cy.get('#StatusDocPos')
.should('have.text', 'Sheet 2 of 2');
cy.contains('.spreadsheet-tab', 'Sheet1')
.click();
helper.clickOnIdle('.spreadsheet-tab', 'Sheet1');
cy.get('#StatusDocPos')
.should('have.text', 'Sheet 1 of 2');