Tests: Refactor acceptance tests

This commit is contained in:
theresa 2023-01-17 16:54:29 +01:00
parent 6414a7bee3
commit 41774fcec9
3 changed files with 6 additions and 18 deletions

View file

@ -62,15 +62,14 @@ test-commands: reset-sqlite run-test-commands
test-photoprism: reset-sqlite run-test-photoprism
test-short: reset-sqlite run-test-short
test-mariadb: reset-acceptance run-test-mariadb
acceptance-run-chromium: storage/acceptance acceptance-auth-sqlite-restart wait acceptance-auth acceptance-auth-sqlite-stop acceptance-sqlite-restart wait acceptance acceptance-sqlite-stop
acceptance-run-chromium-short: storage/acceptance acceptance-auth-sqlite-restart wait acceptance-auth-short acceptance-auth-sqlite-stop acceptance-sqlite-restart wait acceptance-short acceptance-sqlite-stop
acceptance-run-chromium: storage/acceptance acceptance-auth-sqlite-restart wait acceptance-auth acceptance-auth-sqlite-stop acceptance-sqlite-restart wait-2 acceptance acceptance-sqlite-stop
acceptance-run-chromium-short: storage/acceptance acceptance-auth-sqlite-restart wait acceptance-auth-short acceptance-auth-sqlite-stop acceptance-sqlite-restart wait-2 acceptance-short acceptance-sqlite-stop
acceptance-auth-run-chromium: storage/acceptance acceptance-auth-sqlite-restart wait acceptance-auth acceptance-auth-sqlite-stop
acceptance-public-run-chromium: storage/acceptance acceptance-sqlite-restart wait acceptance acceptance-sqlite-stop
acceptance-run-firefox: storage/acceptance acceptance-auth-sqlite-restart wait acceptance-auth-firefox acceptance-auth-sqlite-stop acceptance-sqlite-restart wait acceptance-firefox acceptance-sqlite-stop
acceptance-auth-run-firefox: storage/acceptance acceptance-auth-sqlite-restart wait acceptance-auth-firefox acceptance-auth-sqlite-stop
acceptance-public-run-firefox: storage/acceptance acceptance-sqlite-restart wait acceptance-firefox acceptance-sqlite-stop
wait:
sleep 15
sleep 20
wait-2:
sleep 20
test-all: test acceptance-run-chromium
fmt: fmt-js fmt-go
clean-local: clean-local-config clean-local-cache

View file

@ -20,13 +20,6 @@ const photoviewer = new PhotoViewer();
const page = new Page();
const albumdialog = new AlbumDialog();
test.meta("testID", "authentication-000").meta({ type: "short", mode: "public" })(
"Common: Time to start instance (will be marked as unstable)",
async (t) => {
await t.wait(5000);
}
);
test.meta("testID", "albums-001").meta({ type: "short", mode: "public" })(
"Common: Create/delete album on /albums",
async (t) => {

View file

@ -10,11 +10,7 @@ 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()
.expect(Selector('a[href="https://link.photoprism.app/personal-editions"]').exists)
.ok();
await t.expect(Selector('a[href="https://photoprism.app/"]').visible).ok();
}
);