diff --git a/client/pa11y.js b/client/pa11y.js new file mode 100644 index 00000000..22baec5e --- /dev/null +++ b/client/pa11y.js @@ -0,0 +1,22 @@ +const pa11y = require("pa11y"); + +async function runPa11y() { + try { + const results = await pa11y("http://localhost:8000/login?next=/", { + actions: [ + "set field #username to admin", + "set field #password to test", + 'click element [data-cy="login-button"]', + "wait for path to be /", + "navigate to http://localhost:8000/learn/versicherungsvermittlerin-lp/analyse", + ], + }); + console.log(results); + // Do something with the results + } catch (error) { + console.log(error); + // Handle the error + } +} + +runPa11y(); diff --git a/client/src/App.vue b/client/src/App.vue index 7d453d8b..ec5f9370 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,12 +1,12 @@ @@ -15,7 +15,7 @@ import * as log from "loglevel"; import AppFooter from "@/components/AppFooter.vue"; import MainNavigationBar from "@/components/MainNavigationBar.vue"; -import { onMounted } from "vue"; +import {onMounted} from "vue"; log.debug("App created"); diff --git a/client/src/pages/CockpitPage.vue b/client/src/pages/CockpitPage.vue index b68150da..1c8e9c60 100644 --- a/client/src/pages/CockpitPage.vue +++ b/client/src/pages/CockpitPage.vue @@ -1,5 +1,5 @@ diff --git a/package.json b/package.json index ed702d91..49b7d73e 100644 --- a/package.json +++ b/package.json @@ -10,5 +10,8 @@ }, "devDependencies": { "cypress": "^10.6.0" + }, + "dependencies": { + "pa11y": "^6.2.3" } } diff --git a/server/vbv_lernwelt/static/icons/demo/uk-lernpfad.svg b/server/vbv_lernwelt/static/icons/demo/uk-lernpfad.svg new file mode 100644 index 00000000..079e42f8 --- /dev/null +++ b/server/vbv_lernwelt/static/icons/demo/uk-lernpfad.svg @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/server/vbv_lernwelt/static/icons/demo/vm-lernpfad.svg b/server/vbv_lernwelt/static/icons/demo/vm-lernpfad.svg new file mode 100644 index 00000000..22ec903a --- /dev/null +++ b/server/vbv_lernwelt/static/icons/demo/vm-lernpfad.svg @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/server/vbv_lernwelt/static/icons/icon-certificate.svg b/server/vbv_lernwelt/static/icons/icon-certificate.svg new file mode 100644 index 00000000..b97a85a0 --- /dev/null +++ b/server/vbv_lernwelt/static/icons/icon-certificate.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/server/vbv_lernwelt/static/icons/icon-pen.svg b/server/vbv_lernwelt/static/icons/icon-pen.svg new file mode 100644 index 00000000..68dc9fc8 --- /dev/null +++ b/server/vbv_lernwelt/static/icons/icon-pen.svg @@ -0,0 +1,5 @@ + + +