Tests: Refactor acceptance tests

This commit is contained in:
theresa 2022-10-23 12:47:24 +02:00
parent ac47a0a647
commit fb0800a639
4 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ test.meta("testID", "authentication-003").meta({ type: "short", mode: "auth" })(
await t
.click(settings.accountTab)
.click(settings.changePasswordAction)
.click(account.changePasswordAction)
.typeText(account.currentPassword, "wrong", { replace: true })
.typeText(account.newPassword, "photoprism", { replace: true });
@ -141,7 +141,7 @@ test.meta("testID", "authentication-003").meta({ type: "short", mode: "auth" })(
await t
.click(settings.accountTab)
.click(settings.changePasswordAction)
.click(account.changePasswordAction)
.typeText(account.currentPassword, "photoprism123", { replace: true })
.typeText(account.newPassword, "photoprism", { replace: true })
.typeText(account.retypePassword, "photoprism", { replace: true })

View File

@ -10,7 +10,7 @@ const toolbar = new Toolbar();
const menu = new Menu();
const page = new Page();
test.meta("testID", "components-001").meta({ mode: "private" })(
test.meta("testID", "components-001").meta({ mode: "auth" })(
"Common: Mobile Toolbar",
async (t) => {
if (t.browser.platform === "mobile") {

View File

@ -144,7 +144,7 @@ test.meta("testID", "sharing-001").meta({ mode: "auth" })(
.notOk()
.expect(toolbar.toolbarSecondTitle.withText("Albums").visible)
.notOk()
.expect(Selector("div.input-name input").visible)
.expect(Selector('svg[id="b14cd102-2241-4742-aeeb-4ebca536e025"]').visible)
.ok();
}
);