Tests: Refactor acceptance tests
This commit is contained in:
parent
ac47a0a647
commit
fb0800a639
|
@ -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 })
|
|
@ -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") {
|
|
@ -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();
|
||||
}
|
||||
);
|
Loading…
Reference in New Issue
Block a user