Skip to content

Commit f67a22f

Browse files
committed
Revert "feat(testing): add Playwright accessibility testing POC for Badge and Status Light (#5835)"
This reverts commit 1691e33.
1 parent 1691e33 commit f67a22f

27 files changed

+1240
-1924
lines changed

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,6 @@ chromatic-build-*.xml
137137
chromatic-diagnostics*.json
138138
chromatic.config.json
139139

140-
# Playwright test reports (generated)
141-
1st-gen/test/playwright-a11y/report/
142-
2nd-gen/test/playwright-a11y/report/
143-
144-
# Playwright test results (generated)
145-
playwright-report/
146-
test-results/
147-
148140
# yarn
149141
.pnp.*
150142
.yarn/*

.stylelintignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ HEADER
88
!*.css
99
1st-gen/projects/example-project/dist
1010
1st-gen/tools/styles
11-
1st-gen/spectrum-*.css
12-
1st-gen/test/playwright-a11y/report/
13-
2nd-gen/test/playwright-a11y/report/
11+
1st-gen/spectrum-*.css

1st-gen/package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@
6262
"storybook:quick": "run-p build:watch storybook:run",
6363
"storybook:run": "web-dev-server --config wds-storybook.config.js",
6464
"test": "yarn test:focus unit",
65-
"test:a11y": "playwright test --config=../2nd-gen/playwright.a11y.config.ts",
66-
"test:a11y:1st": "playwright test --config=../2nd-gen/playwright.a11y.config.ts --project=1st-gen",
67-
"test:a11y:2nd": "playwright test --config=../2nd-gen/playwright.a11y.config.ts --project=2nd-gen",
68-
"test:a11y:report": "playwright show-report ../2nd-gen/test/playwright-a11y/report",
69-
"test:a11y:ui": "playwright test --config=../2nd-gen/playwright.a11y.config.ts --ui",
7065
"test:bench": "yarn build:tests && node test/benchmark/cli.js",
7166
"test:changed": "node ./scripts/test-changes.js",
7267
"test:ci": "yarn test:start",
@@ -92,11 +87,10 @@
9287
"react/*"
9388
],
9489
"devDependencies": {
95-
"@axe-core/playwright": "^4.11.0",
9690
"@changesets/changelog-github": "0.5.1",
9791
"@changesets/cli": "2.29.7",
9892
"@commitlint/cli": "19.8.1",
99-
"@commitlint/config-conventional": "^19.8.1",
93+
"@commitlint/config-conventional": "19.8.1",
10094
"@custom-elements-manifest/analyzer": "0.10.6",
10195
"@geometricpanda/storybook-addon-badges": "2.0.5",
10296
"@lit/react": "1.0.8",
@@ -173,7 +167,7 @@
173167
"jsonc-eslint-parser": "2.4.1",
174168
"latest-version": "9.0.0",
175169
"lightningcss": "1.30.1",
176-
"lint-staged": "^16.1.2",
170+
"lint-staged": "16.2.6",
177171
"lit": "^2.5.0 || ^3.1.3",
178172
"lit-analyzer": "2.0.3",
179173
"lit-html": "^2.4.0 || ^3.1.3",
@@ -187,7 +181,7 @@
187181
"prettier-plugin-package": "1.4.0",
188182
"pretty-bytes": "7.1.0",
189183
"re-template-tag": "2.0.1",
190-
"replace-in-file": "^8.3.0",
184+
"replace-in-file": "8.3.0",
191185
"rimraf": "6.0.1",
192186
"rollup": "4.52.2",
193187
"sinon": "17.0.2",

1st-gen/packages/badge/test/badge.a11y.spec.ts

Lines changed: 0 additions & 101 deletions
This file was deleted.

1st-gen/packages/badge/test/badge.a11y.spec.ts-snapshots/Badge---ARIA-Snapshots-should-have-correct-accessibility-tree-for-default-badge-1.aria.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

1st-gen/packages/status-light/test/status-light.a11y.spec.ts

Lines changed: 0 additions & 111 deletions
This file was deleted.

1st-gen/packages/status-light/test/status-light.a11y.spec.ts-snapshots/Status-Light---ARIA-Snapshots-should-have-correct-accessibility-tree-structure-1.aria.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

1st-gen/playwright.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright 2025 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
13+
import type { PlaywrightTestConfig } from '@playwright/test';
14+
const config: PlaywrightTestConfig = {
15+
retries: process.env.CI ? 2 : 0,
16+
};
17+
export default config;

1st-gen/tsconfig-all.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"emitDeclarationOnly": false,
4+
"rootDir": "./",
55
"noEmit": true,
6-
"rootDir": "./"
6+
"emitDeclarationOnly": false
77
},
8-
"exclude": [
9-
"packages/*/node_modules/**/*.ts",
10-
"tools/*/node_modules/**/*.ts",
11-
"packages/**/test/*.a11y.spec.ts",
12-
"test/**/*.ts"
13-
],
148
"include": [
159
"packages/**/*.ts",
1610
"tools/**/*.ts",
1711
"projects/story-decorator/**/*.ts",
1812
"projects/vrt-compare/**/*.ts"
1913
],
14+
"exclude": [
15+
"packages/*/node_modules/**/*.ts",
16+
"tools/*/node_modules/**/*.ts"
17+
],
2018
"references": [
2119
{
2220
"path": "packages/accordion"

2nd-gen/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,12 @@
2424
"start": "run-p dev:core dev:analyze storybook",
2525
"storybook": "yarn workspace @adobe/swc storybook",
2626
"storybook:build": "yarn workspace @adobe/swc storybook:build",
27-
"test": "yarn workspace @adobe/swc test",
28-
"test:a11y": "playwright test --config=playwright.a11y.config.ts",
29-
"test:a11y:1st": "playwright test --config=playwright.a11y.config.ts --project=1st-gen",
30-
"test:a11y:2nd": "playwright test --config=playwright.a11y.config.ts --project=2nd-gen",
31-
"test:a11y:report": "playwright show-report test/playwright-a11y/report",
32-
"test:a11y:ui": "playwright test --config=playwright.a11y.config.ts --ui"
27+
"test": "yarn workspace @adobe/swc test"
3328
},
3429
"workspaces": [
3530
"packages/*"
3631
],
3732
"devDependencies": {
38-
"@axe-core/playwright": "^4.11.0",
39-
"@playwright/test": "1.53.1",
4033
"eslint": "8.57.1",
4134
"eslint-plugin-simple-import-sort": "12.1.1",
4235
"npm-run-all2": "8.0.4"

0 commit comments

Comments
 (0)