Cypress: Force click zoomin and zoomout plus wait before check value

Form tests seems to be a bit unreliable due to toolbar down items
- Not be visible sometimes
- And when the zoom check up is too fast

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4319db1a833335300780d052555f33afc976f33a
This commit is contained in:
Pedro Pinto Silva 2022-09-01 14:53:46 +02:00 committed by pedropintosilva
parent 8896ad25b5
commit 3dd88b5af6

View file

@ -182,11 +182,11 @@ function doZoom(zoomIn) {
});
if (zoomIn) {
cy.get('.w2ui-tb-image.w2ui-icon.zoomin')
.click();
cy.get('.w2ui-tb-image.w2ui-icon.zoomin').click({force: true});
cy.wait(500);
} else {
cy.get('.w2ui-tb-image.w2ui-icon.zoomout')
.click();
cy.get('.w2ui-tb-image.w2ui-icon.zoomout').click({force: true});
cy.wait(500);
}
cy.get('#tb_actionbar_item_zoom .w2ui-tb-caption')