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:
parent
8896ad25b5
commit
3dd88b5af6
1 changed files with 4 additions and 4 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue