photoprism/frontend/tests/acceptance/acceptance-public/settings/about.js

32 lines
970 B
JavaScript
Raw Normal View History

2022-07-14 08:19:04 +00:00
import { Selector } from "testcafe";
import testcafeconfig from "../../../testcafeconfig.json";
2022-07-14 08:19:04 +00:00
import Menu from "../../page-model/menu";
fixture`Test about`.page`${testcafeconfig.url}`;
const menu = new Menu();
test.meta("testID", "about-001").meta({ mode: "public" })(
"Core: About page is displayed with all links",
async (t) => {
await menu.openPage("about");
await t
.expect(Selector('a[href="https://photoprism.app/"]').visible)
.ok()
2022-08-29 12:39:36 +00:00
.expect(Selector('a[href="https://link.photoprism.app/membership"]').exists)
2022-07-14 08:19:04 +00:00
.ok();
}
);
test.meta("testID", "about-002").meta({ type: "short", mode: "public" })(
"Core: License page is displayed with all links",
async (t) => {
await menu.openPage("license");
await t
.expect(Selector("h3").withText("GNU AFFERO GENERAL PUBLIC LICENSE").visible)
.ok()
.expect(Selector('a[href="https://www.gnu.org/licenses/agpl-3.0.en.html"]').visible)
.ok();
}
);