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

26 lines
840 B
JavaScript
Raw Normal View History

import { Selector } from "testcafe";
import testcafeconfig from "../testcafeconfig";
2022-04-15 13:46:25 +00:00
import Menu from "../../page-model/menu";
fixture`Test about`.page`${testcafeconfig.url}`;
2022-04-15 13:46:25 +00:00
const menu = new Menu();
test.meta("testID", "about-001")("About page is displayed with all links", async (t) => {
2022-04-15 13:46:25 +00:00
await menu.openPage("about");
await t
.expect(Selector('a[href="https://photoprism.app/"]').visible)
.ok()
.expect(Selector('a[href="https://link.photoprism.app/patreon"]').visible)
.ok();
});
test.meta("testID", "about-002")("License page is displayed with all links", async (t) => {
2022-04-15 13:46:25 +00:00
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();
});