Skip to content

Commit 7a2b924

Browse files
test: fix failing data layer tests
1 parent 4bffacb commit 7a2b924

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/component-header-footer/playwright.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ export default defineConfig({
55
...defaultConfig,
66
use: {
77
baseURL: 'http://localhost:9080',
8-
trace: 'on-firstt-retry',
8+
trace: 'on-first-retry',
99
},
10-
});
10+
webServer: {
11+
command: 'yarn storybook',
12+
port: 9080,
13+
reuseExistingServer: !process.env.CI,
14+
},
15+
});

packages/unity-react-core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"dev": "yarn storybook & yarn testui",
3333
"lint": "eslint --fix 'src/**/*.{js,jsx}' --ignore-path ../../.eslintignore",
3434
"test": "vitest --watch=false && yarn test-datalayer",
35-
"test-datalayer": "playwright test tests/dataLayer.spec.mjs",
3635
"test:accessibility": "playwright test",
3736
"testui": "vitest --ui",
3837
"start:dev": "webpack-dashboard -- webpack serve -c webpack/webpack.dev.js",

packages/unity-react-core/tests/dataLayer.spec.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ for (const config of testUrls) {
2828
test('should push correct events when opening and closing accordion', async ({ page }) => {
2929
await page.goto(config.url);
3030

31-
await page.waitForSelector('[data-testid="accordion-opener"]');
32-
3331
const openers = await page.getByTestId('accordion-opener').all();
3432
expect(openers.length).toBeGreaterThan(0);
3533

0 commit comments

Comments
 (0)