Tests: Update photo page-model
This commit is contained in:
parent
f96fd688b0
commit
e3ecfb5a94
1 changed files with 13 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue