Skip to content

refactor: types and style #4

refactor: types and style

refactor: types and style #4

Triggered via push October 2, 2024 14:19
Status Failure
Total duration 4m 55s
Artifacts

validate.yml

on: push
Check changed files
4s
Check changed files
Matrix: Validate
Build and deploy  /  Generate environment variables
Build and deploy / Generate environment variables
Build and deploy  /  Generate public url
Build and deploy / Generate public url
Build and deploy  /  Build and push docker image
Build and deploy / Build and push docker image
Build and deploy  /  ...  /  deploy
Build and deploy / Deploy docker image / deploy
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 8 warnings, and 1 notice
Validate (20.x, ubuntu-latest)
Testing stopped early after 10 maximum allowed failures.
[chromium] › tests/app/app.test.ts:61:2 › app › should serve a webmanifest: e2e/tests/app/app.test.ts#L67
1) [chromium] › tests/app/app.test.ts:61:2 › app › should serve a webmanifest ──────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "{\"name\":\"OpenAtlas Discovery\",\"short_name\":\"OpenAtlas Discovery\",\"description\":\"OpenAtlas ist eine Open-Source-Datenbanksoftware, die speziell für die Erfassung, Bearbeitung und Verwaltung von Forschungsdaten aus verschiedenen Bereichen der Geisteswissenschaften entwickelt wurde.\",\"start_url\":\"/\",\"display\":\"standalone\",\"background_color\":\"#fff\",\"theme_color\":\"#fff\",\"icons\":[{\"src\":\"/icon.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"},{\"src\":\"/icon-maskable.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\",\"purpose\":\"maskable\"},{\"src\":\"/android-chrome-192x192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"},{\"src\":\"/android-chrome-512x512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}]}" Received: "{\"name\":\"Metadata.name\",\"short_name\":\"Metadata.shortName\",\"description\":\"Metadata.description\",\"start_url\":\"/\",\"display\":\"standalone\",\"background_color\":\"#fff\",\"theme_color\":\"#fff\",\"icons\":[{\"src\":\"/icon.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"},{\"src\":\"/icon-maskable.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\",\"purpose\":\"maskable\"},{\"src\":\"/android-chrome-192x192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"},{\"src\":\"/android-chrome-512x512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}]}" 65 | const i18n = await createI18n(defaultLocale); 66 | > 67 | expect(body.toString()).toEqual( | ^ 68 | JSON.stringify({ 69 | name: i18n.t("Metadata.name"), 70 | short_name: i18n.t("Metadata.shortName"), at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:67:27
[chromium] › tests/app/app.test.ts:61:2 › app › should serve a webmanifest: e2e/tests/app/app.test.ts#L67
1) [chromium] › tests/app/app.test.ts:61:2 › app › should serve a webmanifest ──────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "{\"name\":\"OpenAtlas Discovery\",\"short_name\":\"OpenAtlas Discovery\",\"description\":\"OpenAtlas ist eine Open-Source-Datenbanksoftware, die speziell für die Erfassung, Bearbeitung und Verwaltung von Forschungsdaten aus verschiedenen Bereichen der Geisteswissenschaften entwickelt wurde.\",\"start_url\":\"/\",\"display\":\"standalone\",\"background_color\":\"#fff\",\"theme_color\":\"#fff\",\"icons\":[{\"src\":\"/icon.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"},{\"src\":\"/icon-maskable.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\",\"purpose\":\"maskable\"},{\"src\":\"/android-chrome-192x192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"},{\"src\":\"/android-chrome-512x512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}]}" Received: "{\"name\":\"Metadata.name\",\"short_name\":\"Metadata.shortName\",\"description\":\"Metadata.description\",\"start_url\":\"/\",\"display\":\"standalone\",\"background_color\":\"#fff\",\"theme_color\":\"#fff\",\"icons\":[{\"src\":\"/icon.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"},{\"src\":\"/icon-maskable.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\",\"purpose\":\"maskable\"},{\"src\":\"/android-chrome-192x192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"},{\"src\":\"/android-chrome-512x512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}]}" 65 | const i18n = await createI18n(defaultLocale); 66 | > 67 | expect(body.toString()).toEqual( | ^ 68 | JSON.stringify({ 69 | name: i18n.t("Metadata.name"), 70 | short_name: i18n.t("Metadata.shortName"), at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:67:27
[chromium] › tests/app/app.test.ts:61:2 › app › should serve a webmanifest: e2e/tests/app/app.test.ts#L67
1) [chromium] › tests/app/app.test.ts:61:2 › app › should serve a webmanifest ──────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "{\"name\":\"OpenAtlas Discovery\",\"short_name\":\"OpenAtlas Discovery\",\"description\":\"OpenAtlas ist eine Open-Source-Datenbanksoftware, die speziell für die Erfassung, Bearbeitung und Verwaltung von Forschungsdaten aus verschiedenen Bereichen der Geisteswissenschaften entwickelt wurde.\",\"start_url\":\"/\",\"display\":\"standalone\",\"background_color\":\"#fff\",\"theme_color\":\"#fff\",\"icons\":[{\"src\":\"/icon.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"},{\"src\":\"/icon-maskable.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\",\"purpose\":\"maskable\"},{\"src\":\"/android-chrome-192x192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"},{\"src\":\"/android-chrome-512x512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}]}" Received: "{\"name\":\"Metadata.name\",\"short_name\":\"Metadata.shortName\",\"description\":\"Metadata.description\",\"start_url\":\"/\",\"display\":\"standalone\",\"background_color\":\"#fff\",\"theme_color\":\"#fff\",\"icons\":[{\"src\":\"/icon.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"},{\"src\":\"/icon-maskable.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\",\"purpose\":\"maskable\"},{\"src\":\"/android-chrome-192x192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"},{\"src\":\"/android-chrome-512x512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}]}" 65 | const i18n = await createI18n(defaultLocale); 66 | > 67 | expect(body.toString()).toEqual( | ^ 68 | JSON.stringify({ 69 | name: i18n.t("Metadata.name"), 70 | short_name: i18n.t("Metadata.shortName"), at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:67:27
[chromium] › tests/app/app.test.ts:137:2 › app › should skip to main content with skip-link: e2e/tests/app/app.test.ts#L142
2) [chromium] › tests/app/app.test.ts:137:2 › app › should skip to main content with skip-link ─── Error: Timed out 5000ms waiting for expect(locator).toBeFocused() Locator: getByRole('link', { name: 'Zum Hauptinhalt springen' }) Expected: focused Received: <element(s) not found> Call log: - expect.toBeFocused with timeout 5000ms - waiting for getByRole('link', { name: 'Zum Hauptinhalt springen' }) 140 | 141 | await indexPage.page.keyboard.press("Tab"); > 142 | await expect(indexPage.skipLink).toBeFocused(); | ^ 143 | 144 | await indexPage.skipLink.click(); 145 | await expect(indexPage.mainContent).toBeFocused(); at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:142:36
[chromium] › tests/app/app.test.ts:137:2 › app › should skip to main content with skip-link: e2e/tests/app/app.test.ts#L142
2) [chromium] › tests/app/app.test.ts:137:2 › app › should skip to main content with skip-link ─── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeFocused() Locator: getByRole('link', { name: 'Zum Hauptinhalt springen' }) Expected: focused Received: <element(s) not found> Call log: - expect.toBeFocused with timeout 5000ms - waiting for getByRole('link', { name: 'Zum Hauptinhalt springen' }) 140 | 141 | await indexPage.page.keyboard.press("Tab"); > 142 | await expect(indexPage.skipLink).toBeFocused(); | ^ 143 | 144 | await indexPage.skipLink.click(); 145 | await expect(indexPage.mainContent).toBeFocused(); at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:142:36
[chromium] › tests/app/app.test.ts:137:2 › app › should skip to main content with skip-link: e2e/tests/app/app.test.ts#L142
2) [chromium] › tests/app/app.test.ts:137:2 › app › should skip to main content with skip-link ─── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeFocused() Locator: getByRole('link', { name: 'Zum Hauptinhalt springen' }) Expected: focused Received: <element(s) not found> Call log: - expect.toBeFocused with timeout 5000ms - waiting for getByRole('link', { name: 'Zum Hauptinhalt springen' }) 140 | 141 | await indexPage.page.keyboard.press("Tab"); > 142 | await expect(indexPage.skipLink).toBeFocused(); | ^ 143 | 144 | await indexPage.skipLink.click(); 145 | await expect(indexPage.mainContent).toBeFocused(); at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:142:36
[chromium] › tests/app/app.test.ts:148:2 › app › should set `lang` attribute on `html` element: e2e/tests/app/app.test.ts#L152
3) [chromium] › tests/app/app.test.ts:148:2 › app › should set `lang` attribute on `html` element Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('html') Expected string: "de" Received string: "" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('html') - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" 150 | const { indexPage } = await createIndexPage(locale); 151 | await indexPage.goto(); > 152 | await expect(indexPage.page.locator("html")).toHaveAttribute("lang", locale); | ^ 153 | } 154 | }); 155 | }); at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:152:49
[chromium] › tests/app/app.test.ts:148:2 › app › should set `lang` attribute on `html` element: e2e/tests/app/app.test.ts#L152
3) [chromium] › tests/app/app.test.ts:148:2 › app › should set `lang` attribute on `html` element Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('html') Expected string: "de" Received string: "" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('html') - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" 150 | const { indexPage } = await createIndexPage(locale); 151 | await indexPage.goto(); > 152 | await expect(indexPage.page.locator("html")).toHaveAttribute("lang", locale); | ^ 153 | } 154 | }); 155 | }); at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:152:49
[chromium] › tests/app/app.test.ts:148:2 › app › should set `lang` attribute on `html` element: e2e/tests/app/app.test.ts#L152
3) [chromium] › tests/app/app.test.ts:148:2 › app › should set `lang` attribute on `html` element Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('html') Expected string: "de" Received string: "" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('html') - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" - locator resolved to <html data-capo="" class="light" data-ui-color-scheme="light">…</html> - unexpected value "null" 150 | const { indexPage } = await createIndexPage(locale); 151 | await indexPage.goto(); > 152 | await expect(indexPage.page.locator("html")).toHaveAttribute("lang", locale); | ^ 153 | } 154 | }); 155 | }); at /home/runner/work/oad-femcare-vienna/oad-femcare-vienna/e2e/tests/app/app.test.ts:152:49
Validate (20.x, ubuntu-latest): components/app-header.vue#L106
Classname 'h-18' is not a Tailwind CSS class!
Validate (20.x, ubuntu-latest): components/app-header.vue#L112
Classname 'h-18' is not a Tailwind CSS class!
Validate (20.x, ubuntu-latest): components/entity-details.vue#L59
Variable 'relations' is already declared in the upper scope
Validate (20.x, ubuntu-latest): components/search-form.vue#L48
Variable 'category' is already declared in the upper scope
Validate (20.x, ubuntu-latest): components/ui/collapsible/Collapsible.vue#L16
Variable 'open' is already declared in the upper scope
Validate (20.x, ubuntu-latest): e2e/tests/pages/imprint.test.ts#L43
Unexpected use of the `.skip()` annotation
Validate (20.x, ubuntu-latest): e2e/tests/pages/index.test.ts#L29
Unexpected use of the `.skip()` annotation
Validate (20.x, ubuntu-latest)
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
🎭 Playwright Run Summary
4 failed [chromium] › tests/app/app.test.ts:61:2 › app › should serve a webmanifest ───────────────────── [chromium] › tests/app/app.test.ts:137:2 › app › should skip to main content with skip-link ──── [chromium] › tests/app/app.test.ts:148:2 › app › should set `lang` attribute on `html` element ─ [chromium] › tests/app/metadata.test.ts:10:1 › should set a canonical url ────────────────────── 12 did not run 9 passed (48.4s)