-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4238e4
commit 13c4093
Showing
35 changed files
with
2,371 additions
and
2,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<template> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
<NuxtLoadingIndicator /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
import { createUrl, createUrlSearchParams } from "@acdh-oeaw/lib"; | ||
|
||
import { type Locale } from "@/config/i18n.config"; | ||
|
||
const baseUrl = "https://shared.acdh.oeaw.ac.at"; | ||
const pathname = "/acdh-common-assets/api/imprint.php"; | ||
import type { Locale } from "@/config/i18n.config"; | ||
|
||
export function createImprintUrl(locale: Locale, redmineId: string): URL { | ||
return createUrl({ | ||
baseUrl, | ||
pathname, | ||
searchParams: createUrlSearchParams({ | ||
outputLang: locale, | ||
serviceID: redmineId, | ||
}), | ||
baseUrl: "https://imprint.acdh.oeaw.ac.at", | ||
pathname: `/${redmineId}`, | ||
searchParams: createUrlSearchParams({ locale }), | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import AxeBuilder from "@axe-core/playwright"; | ||
import { AxeBuilder } from "@axe-core/playwright"; | ||
import { expect, test } from "@playwright/test"; | ||
|
||
test.describe("imprint page", () => { | ||
test("should have document title", async ({ page }) => { | ||
await page.goto("/imprint"); | ||
await page.goto("/en/imprint"); | ||
await expect(page).toHaveTitle("Imprint | ACDH-CH App"); | ||
|
||
await page.goto("/de/imprint"); | ||
await expect(page).toHaveTitle("Impressum | ACDH-CH App"); | ||
}); | ||
|
||
test("should have imprint text", async ({ page }) => { | ||
await page.goto("/imprint"); | ||
await page.goto("/en/imprint"); | ||
await expect(page.getByRole("main")).toContainText("Legal disclosure"); | ||
|
||
await page.goto("/de/imprint"); | ||
await expect(page.getByRole("main")).toContainText("Offenlegung"); | ||
}); | ||
|
||
test("should not have any automatically detectable accessibility issues", async ({ page }) => { | ||
await page.goto("/"); | ||
await page.goto("/en/imprint"); | ||
expect((await new AxeBuilder({ page }).analyze()).violations).toEqual([]); | ||
|
||
await page.goto("/de"); | ||
await page.goto("/de/imprint"); | ||
expect((await new AxeBuilder({ page }).analyze()).violations).toEqual([]); | ||
}); | ||
}); |
Oops, something went wrong.