2021-01-20 17:13:22 +01:00
|
|
|
import { Selector } from "testcafe";
|
|
|
|
import testcafeconfig from "../testcafeconfig";
|
|
|
|
import Page from "../page-model";
|
|
|
|
|
|
|
|
fixture`Test about`.page`${testcafeconfig.url}`;
|
|
|
|
|
|
|
|
const page = new Page();
|
|
|
|
test.meta("testID", "about-001")("About page is displayed with all links", async (t) => {
|
|
|
|
await page.openNav();
|
|
|
|
await t
|
|
|
|
.click(Selector(".nav-settings + div"))
|
|
|
|
.click(Selector(".nav-about"))
|
|
|
|
.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()
|
2022-02-09 18:27:50 +01:00
|
|
|
.expect(Selector('a[href="https://link.photoprism.app/roadmap"]').visible)
|
2021-01-20 17:13:22 +01:00
|
|
|
.ok()
|
2021-12-12 20:48:05 +01:00
|
|
|
.expect(Selector('a[href="https://docs.photoprism.app/"]').visible)
|
2021-01-20 17:13:22 +01:00
|
|
|
.ok()
|
|
|
|
.expect(Selector('a[href="/about/license"]').visible)
|
|
|
|
.ok()
|
2022-03-02 10:48:49 +01:00
|
|
|
.expect(Selector('a[href="https://link.photoprism.app/chat"]').visible)
|
2021-01-20 17:13:22 +01:00
|
|
|
.ok()
|
2022-03-02 10:48:49 +01:00
|
|
|
.expect(Selector('a[href="https://link.photoprism.app/twitter"]').visible)
|
2021-01-20 17:13:22 +01:00
|
|
|
.ok();
|
|
|
|
});
|
|
|
|
|
|
|
|
test.meta("testID", "about-002")("License page is displayed with all links", async (t) => {
|
|
|
|
await page.openNav();
|
|
|
|
await t
|
|
|
|
.click(Selector(".nav-settings + div"))
|
|
|
|
.click(Selector(".nav-license"))
|
|
|
|
.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();
|
|
|
|
});
|