Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into fix/GH-1576
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanilowicz committed Jan 13, 2025
2 parents 4432b0e + 21a1689 commit 4bce7a9
Show file tree
Hide file tree
Showing 10 changed files with 854 additions and 622 deletions.
9 changes: 3 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ updates:
- dependency-name: "vitepress-shopware-docs"
# until https://github.com/nuxt-modules/i18n/issues/2215 is resolved
- dependency-name: "@nuxtjs/i18n"
# ignoring all Astro updates
- dependency-name: "@astrojs/*"
- dependency-name: "astro"
groups:
astro:
update-types:
- "major"
patterns:
- "@astrojs/*"
- "astro"
changelog:
patterns:
- "@changesets/*"
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/accessibility-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Accessibiliy Check

run-name: Playwright accessibility tests 🚀
on:
workflow_dispatch:
schedule:
- cron: "30 09 * * *"
jobs:
run-stackblitz-templates-tests:
runs-on: macos-14
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline

- name: Install dependencies with Playwright
run: |
pnpm playwright install --with-deps
- name: Run tests
run: |
cd apps/e2e-tests
npx playwright test --grep @accessibility --project=chromium
3 changes: 2 additions & 1 deletion .github/workflows/failed-job-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
Lighthouse CI,
Stackblitz templates,
Audit check,
Accessibiliy Check,
]
types: [completed]
branches: [main, prod]
Expand All @@ -23,4 +24,4 @@ jobs:
message_format: ":fire: *${{github.event.workflow_run.name}}* ${{github.event.workflow_run.conclusion}} in <${{github.server_url}}/${{github.repository}}/${{github.event.workflow_run.head_branch}}|${{github.repository}}>"
footer: "Linked Repo <${{github.server_url}}/${{github.repository}}|${{github.repository}}> | <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.FAIL_SLACK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.FAIL_SLACK_URL }}
1 change: 1 addition & 0 deletions apps/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@playwright/test": "1.49.1"
},
"dependencies": {
"@axe-core/playwright": "^4.10.0",
"@faker-js/faker": "9.3.0",
"@stackblitz/sdk": "1.11.0",
"dotenv": "16.4.7",
Expand Down
41 changes: 41 additions & 0 deletions apps/e2e-tests/tests/accessibilityCheck.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import AxeBuilder from "@axe-core/playwright";
import { expect, test } from "@playwright/test";
import { HomePage } from "../page-objects/HomePage";
import { ProductPage } from "../page-objects/ProductPage";

test.describe.only(
"Should not have any automatically detectable accessibility issues",
{ tag: "@accessibility" },
() => {
let homePage: HomePage;
let productPage: ProductPage;

// Before Hook
test.beforeEach(async ({ page }) => {
homePage = new HomePage(page);
productPage = new ProductPage(page);

await homePage.visitMainPage();
});

test("Check Homepage accessibility issues", async ({ page }) => {
await homePage.visitMainPage();
const accessibilityScanResults = await new AxeBuilder({ page }).analyze();
expect(accessibilityScanResults.violations).toEqual([]);
});

test("Check Category accessibility issues", async ({ page }) => {
await homePage.visitMainPage();
await homePage.openCategoryPage();
const accessibilityScanResults = await new AxeBuilder({ page }).analyze();
expect(accessibilityScanResults.violations).toEqual([]);
});

test("Check Product Page accessibility issues", async ({ page }) => {
await homePage.visitMainPage();
await homePage.openCartPage();
const accessibilityScanResults = await new AxeBuilder({ page }).analyze();
expect(accessibilityScanResults.violations).toEqual([]);
});
},
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"husky": "9.1.7",
"prettier": "3.4.2",
"turbo": "2.3.3",
"vercel": "39.2.5"
"vercel": "39.2.6"
},
"engines": {
"node": "^18.17.x || ^20.x || ^22.x"
Expand Down
2 changes: 1 addition & 1 deletion packages/composables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@nuxt/kit": "3.14.1592",
"@vitest/coverage-v8": "2.1.8",
"@vue/test-utils": "2.4.6",
"happy-dom": "16.3.0",
"happy-dom": "16.5.3",
"tsconfig": "workspace:*",
"typescript": "5.6.3",
"unbuild": "2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-shopware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"license": "MIT",
"dependencies": {
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint": "9.18.0",
"eslint-config-prettier": "10.0.1",
"typescript-eslint": "8.17.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@vitest/coverage-v8": "2.1.8",
"happy-dom": "16.3.0",
"happy-dom": "16.5.3",
"tsconfig": "workspace:*",
"unbuild": "2.0.0",
"vitest": "2.1.8"
Expand Down
Loading

0 comments on commit 4bce7a9

Please sign in to comment.