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