mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Tests: Update photoviewer page model
This commit is contained in:
parent
33548d4054
commit
b2ffa67e09
1 changed files with 7 additions and 0 deletions
|
|
@ -44,6 +44,13 @@ export default class Page {
|
|||
if (action === "close") {
|
||||
if (await Selector("button.pswp__button.action-" + action).visible) {
|
||||
await t.click(Selector("button.pswp__button.action-" + action));
|
||||
} else {
|
||||
await t.wait(8000);
|
||||
if (await Selector("button.pswp__button.action-" + action).visible) {
|
||||
await t.click(Selector("button.pswp__button.action-" + action));
|
||||
} else {
|
||||
console.log("Could not close Photoviewer");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue