{"_id":"@ariada-org/test-fixtures","name":"@ariada-org/test-fixtures","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@ariada-org/test-fixtures","version":"0.2.0","description":"Curated HTML fixtures + golden snapshots for accessibility rule testing — generic axe-core cases plus EU real-world patterns (Klarna/BankID/MobilePay/Mittelstand/RGAA). HTML fixtures dedicated to the public domain (CC0-1.0); fixture-server source code und","license":"CC0-1.0 AND EUPL-1.2","type":"module","main":"./dist/serve.js","types":"./dist/serve.d.ts","exports":{".":{"types":"./dist/serve.d.ts","import":"./dist/serve.js"},"./multi-root-server":{"types":"./dist/multi-root-server.d.ts","import":"./dist/multi-root-server.js"},"./playwright-base":{"types":"./dist/playwright-base-config.d.ts","import":"./dist/playwright-base-config.js"},"./playwright-fixture-generic-eu":{"types":"./dist/playwright-fixture-generic-eu.d.ts","import":"./dist/playwright-fixture-generic-eu.js"},"./fixtures/*":"./fixtures/*"},"peerDependencies":{"@playwright/test":"^1.60.0"},"peerDependenciesMeta":{"@playwright/test":{"optional":true}},"devDependencies":{"@playwright/test":"^1.60.0","rimraf":"^6.0.1","typescript":"^5.7.2","vitest":"^4.1.0","eslint":"^9.17.0"},"engines":{"node":">=22"},"keywords":["accessibility","a11y","wcag","test-fixtures","axe-core","html","klarna","bankid","mobilepay","rgaa","eu","eupl"],"homepage":"https://ariada.org/packages/test-fixtures","repository":{"type":"git","url":"git+https://github.com/ariada-org/ariada.git","directory":"packages/ariada-test-fixtures"},"bugs":{"url":"https://github.com/ariada-org/ariada/issues"},"author":{"name":"Alekszandr Bricskin","email":"git@ariada.org","url":"Agonist Development AB"},"publishConfig":{"access":"public","provenance":true},"scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","lint":"eslint src","test":"vitest run --passWithNoTests","clean":"rimraf dist"},"_id":"@ariada-org/test-fixtures@0.2.0","_integrity":"sha512-5koB8wkHQVdUdA5z5wkWwuc0tneF9Gmg1s95WzomD+CsjAbtZXNQ3319B6z8bYHzMp6L55YSj6OdnZ6WLkw4rg==","_resolved":"/tmp/2746b0191d5c200539239057b5a28b2b/ariada-org-test-fixtures-0.2.0.tgz","_from":"file:ariada-org-test-fixtures-0.2.0.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-5koB8wkHQVdUdA5z5wkWwuc0tneF9Gmg1s95WzomD+CsjAbtZXNQ3319B6z8bYHzMp6L55YSj6OdnZ6WLkw4rg==","shasum":"fdbb41c0fd59d1f2369b210c985b88eb718206fc","tarball":"https://registry.npmjs.org/@ariada-org/test-fixtures/-/test-fixtures-0.2.0.tgz","fileCount":44,"unpackedSize":88262,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ariada-org%2ftest-fixtures@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDfhXIQpUTi2VVSde4wycrUgdqhp7KlKPOb5FSkAEL+mgIgYWkyLinVOwQ7T5aD9cdw/oVw3A26WZUEHZGEigpchaE="}]},"_npmUser":{"name":"agonist","email":"ab@agonist.ai"},"directories":{},"maintainers":[{"name":"agonist","email":"ab@agonist.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/test-fixtures_0.2.0_1781536554902_0.7619692270242184"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-15T15:15:54.751Z","0.2.0":"2026-06-15T15:15:55.067Z","modified":"2026-06-15T15:15:55.471Z"},"maintainers":[{"name":"agonist","email":"ab@agonist.ai"}],"description":"Curated HTML fixtures + golden snapshots for accessibility rule testing — generic axe-core cases plus EU real-world patterns (Klarna/BankID/MobilePay/Mittelstand/RGAA). HTML fixtures dedicated to the public domain (CC0-1.0); fixture-server source code und","homepage":"https://ariada.org/packages/test-fixtures","keywords":["accessibility","a11y","wcag","test-fixtures","axe-core","html","klarna","bankid","mobilepay","rgaa","eu","eupl"],"repository":{"type":"git","url":"git+https://github.com/ariada-org/ariada.git","directory":"packages/ariada-test-fixtures"},"author":{"name":"Alekszandr Bricskin","email":"git@ariada.org","url":"Agonist Development AB"},"bugs":{"url":"https://github.com/ariada-org/ariada/issues"},"license":"CC0-1.0 AND EUPL-1.2","readme":"<!--\nSPDX-FileCopyrightText: 2026 Alekszandr Bricskin (Agonist Development AB, Sweden, org.nr 559452-5726)\nSPDX-License-Identifier: CC-BY-SA-4.0\n-->\n\n# @ariada-org/test-fixtures\n\nCurated HTML fixtures + golden snapshots for accessibility rule testing.\n\n<!-- REUSE-IgnoreStart -->\n\nHTML fixtures are dedicated to the public domain under [CC0-1.0](./LICENSE) (Creative Commons Zero v1.0 Universal — maximum-permissive, no attribution required). The fixture-server source code under `src/serve.ts` remains [EUPL-1.2](./LICENSES/EUPL-1.2.txt) and carries an inline EUPL-1.2 SPDX header. The compound SPDX expression in `package.json` is `CC0-1.0 AND EUPL-1.2`.\n\n<!-- REUSE-IgnoreEnd -->\n\n## What this package does\n\nProvides a stable, version-controlled set of HTML test inputs for accessibility-rule libraries, scanners, and CI harnesses. Two layers:\n\n- **Generic axe-core cases** — minimal stand-alone files for basic regression: contrast violations, missing alt, iframe / shadow-DOM containment, mixed-severity baselines.\n- **EU real-world patterns** — fixtures that imitate the visual / interaction patterns of widely-deployed European services (Klarna-style SE checkout, BankID-style SE authentication, MobilePay-style DK merchant flow, Finnish DOS-lagen statement, German Mittelstand, French RGAA). No third-party brand assets are embedded; brand names appear only in filenames and provenance comments for findability.\n\n## Install\n\n```bash\nnpm install --save-dev @ariada-org/test-fixtures\n```\n\n## Usage — programmatic HTTP server (generic fixtures)\n\n```ts\nimport { startFixtureServer } from \"@ariada-org/test-fixtures\";\n\nconst fx = await startFixtureServer();\n// fx.url → http://127.0.0.1:<random>\n// navigate to `${fx.url}/color-contrast.html` etc\nawait fx.stop();\n```\n\n## Usage — file-path access (any fixture)\n\n```ts\nimport { createRequire } from \"node:module\";\nimport * as path from \"node:path\";\n\nconst require = createRequire(import.meta.url);\nconst fixturesRoot = path.dirname(\n  require.resolve(\"@ariada-org/test-fixtures/fixtures/basic-pass.html\"),\n);\n\n// or for the EU real-world set:\nconst euRoot = path.dirname(\n  require.resolve(\"@ariada-org/test-fixtures/fixtures/eu-real-world/README.md\"),\n);\n```\n\n## Generic fixtures (`fixtures/`)\n\n| File                  | Purpose                                       |\n| --------------------- | --------------------------------------------- |\n| `basic-pass.html`     | Clean baseline, no violations                 |\n| `color-contrast.html` | 2 critical-contrast violations                |\n| `alt-text.html`       | 3 serious missing-alt violations              |\n| `shadow-dom.html`     | Open shadow root with inner violations        |\n| `iframe-nested.html`  | Top frame + same-origin child with violations |\n| `iframe-child.html`   | Child of `iframe-nested.html`                 |\n| `mixed-severity.html` | Mixed critical/serious/moderate/minor         |\n\n## EU real-world fixtures (`fixtures/eu-real-world/`)\n\nEach file carries an in-file `License: CC0-1.0` header and a `Status: PASS|FAIL|MIXED` marker. Categories:\n\n- **Swedish e-commerce** — `klarna-style-{cart,checkout,bad-checkout,order-confirmation}-sv.html`\n- **Swedish banking** — `bankid-style-{sso-redirect,2fa-challenge,success}-sv.html`\n- **Danish mobile pay** — `mobilepay-style-{merchant-checkout,authentication,bad-merchant}-da.html`\n- **Finnish statement** — `accessibility-statement-fi{,-incomplete}.html`\n- **German Mittelstand** — `mittelstand-{checkout,bad-checkout}-de.html`\n- **French RGAA** — `rgaa-statement-fr{,-incomplete}.html`\n\n## License\n\n[CC0-1.0](./LICENSE) for all `fixtures/**` HTML content (Creative Commons Zero — public-domain dedication, maximum-permissive). [EUPL-1.2](./LICENSES/EUPL-1.2.txt) for `src/serve.ts` (the in-process fixture-server code). REUSE-machine-readable metadata in [`REUSE.toml`](./REUSE.toml). See [NOTICE](./NOTICE) for the patent-peace pledge and trademark notice.\n\nThe CC0-1.0 dedication on fixtures is deliberate: accessibility test corpora benefit from frictionless reuse across competing toolchains, regulators, and academic work. We chose CC0-1.0 over Apache-2.0 / MIT to avoid an attribution-collision problem when downstream consumers concatenate fixtures from multiple sources into a single golden-file suite. This also aligns with Horizon Europe Article 17 «open data» principles for publicly-funded research outputs.\n\n## Part of the Ariada OSS platform\n\nThis package is one component of the open-core Ariada accessibility-compliance platform. See [ariada.org](https://ariada.org) for the full pipeline.\n","readmeFilename":"README.md","_rev":"1-6f3c9843fe38d8130911a323f5edbe8d"}