cypress: NC: fix slide insertion test.

In an iframe context 'not.exist' check does not
work correctly.

Change-Id: Ie522fd02ac5151fec401f49a8b80a64edbbbeb1b
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai 2020-11-04 12:14:28 +01:00 committed by Tamás Zolnai
parent e2c10e4389
commit e30caa8053

View file

@ -1,4 +1,4 @@
/* global describe it cy beforeEach require expect afterEach*/
/* global describe it cy beforeEach require expect afterEach Cypress*/
require('cypress-file-upload');
@ -517,10 +517,12 @@ describe('Impress insertion wizard.', function() {
impressHelper.assertNumberOfSlidePreviews(2);
cy.get('#tb_actionbar_item_closemobile')
.click();
if (Cypress.env('INTEGRATION') !== 'nextcloud') {
cy.get('#tb_actionbar_item_closemobile')
.click();
cy.contains('.leaflet-control-zoom-in', '+')
.should('not.be.visible');
cy.contains('.leaflet-control-zoom-in', '+')
.should('not.exist');
}
});
});