@dargmuesli/nuxt-vio-testing 20.6.3 → 20.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/e2e/utils/tests.ts +3 -2
- package/package.json +1 -1
- package/playwright.config.ts +1 -1
package/e2e/utils/tests.ts
CHANGED
|
@@ -2,8 +2,9 @@ import AxeBuilder from '@axe-core/playwright'
|
|
|
2
2
|
import { expect, type Page } from '@playwright/test'
|
|
3
3
|
import { joinURL, withoutTrailingSlash } from 'ufo'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import {
|
|
5
|
+
// the following imports cannot use the #tests alias because downstream consumers of this package typically cannot resolve that alias
|
|
6
|
+
import { vioTest } from '../fixtures/vioTest'
|
|
7
|
+
import { SITE_URL, TIMEOUT } from '../utils/constants'
|
|
7
8
|
|
|
8
9
|
export const testA11y = (url: string) =>
|
|
9
10
|
vioTest.describe('a11y', () => {
|
package/package.json
CHANGED
package/playwright.config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineConfig, devices } from '@playwright/test'
|
|
2
2
|
|
|
3
|
-
import { SITE_URL, TIMEOUT } from '
|
|
3
|
+
import { SITE_URL, TIMEOUT } from './e2e/utils/constants' // importing from `src` or using the `#tests` path does not work because downstream consumers of this package typically cannot resolve those paths
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Read environment variables from file.
|