Tests: Update photo page-model

This commit is contained in:
theresa 2022-01-18 18:29:24 +01:00
parent f96fd688b0
commit e3ecfb5a94

View file

@ -48,4 +48,17 @@ export default class Page {
.click(Selector("div.type-" + type + " .input-select").nth(nPhoto));
}
}
async checkPhotoVisibility(uid, visible) {
if(visible) {
await t
.expect(Selector("div.is-photo").withAttribute("data-uid", uid).visible)
.ok();
} else {
await t
.expect(Selector("div.is-photo").withAttribute("data-uid", uid).visible)
.notOk();
}
}
}