Skip to content

Commit 166f13f

Browse files
committed
chore: update tabs test
1 parent 814c790 commit 166f13f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

showcases/e2e/tabs/tabs-snapshot.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { expect, test } from '@playwright/test';
22
// @ts-expect-error - required for playwright
3-
import { getDefaultScreenshotTest, runAriaSnapshotTest } from '../default.ts';
3+
import {
4+
getDefaultScreenshotTest,
5+
isAngular,
6+
isVue,
7+
runAriaSnapshotTest
8+
} from '../default.ts';
49

510
const path = '04/tabs';
11+
const showcase = process.env.showcase;
612

713
test.describe('DBTabs', () => {
814
getDefaultScreenshotTest({
@@ -14,11 +20,11 @@ test.describe('DBTabs', () => {
1420
if (
1521
(project.name === 'webkit' ||
1622
project.name === 'mobile_safari') &&
17-
process.env.showcase.startsWith('vue')
23+
(isAngular(showcase) || isVue(showcase))
1824
) {
1925
// There is a bug in webkit where the scroll buttons are not visible 50% of the time
2026
// Probably due to the scrollWidth or clientWidth not being calculated correctly
21-
// Only in Vue
27+
// Only in Vue and Angular
2228
// TODO: Investigate further
2329
test.skip();
2430
}

0 commit comments

Comments
 (0)