Skip to content

Commit 310ef62

Browse files
authored
fix: use basepath for group in URL for tests (#5502)
1 parent 8ff8606 commit 310ef62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

showcases/patternhub/tests/default.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ for (const group of Components) {
2222
await getDefaultScreenshotTest(
2323
component.name,
2424
`docs`,
25-
`./components/${component.name}/docs/Angular`,
25+
`.${group.path}/${component.name}/docs/Angular`,
2626
async (page) => {
2727
const firstH2 = page.locator('h2').first();
2828
await expect(firstH2).toBeVisible();
@@ -33,7 +33,7 @@ for (const group of Components) {
3333
await getDefaultScreenshotTest(
3434
component.name,
3535
`overview`,
36-
`./components/${component.name}/overview?fullscreen=true`,
36+
`.${group.path}/${component.name}/overview?fullscreen=true`,
3737
async (page) => {
3838
const firstH2 = page.locator('h1').first();
3939
await expect(firstH2).toBeVisible();
@@ -44,7 +44,7 @@ for (const group of Components) {
4444
await getDefaultScreenshotTest(
4545
component.name,
4646
`properties`,
47-
`./components/${component.name}/properties?fullscreen=true&noh1=true`,
47+
`.${group.path}/${component.name}/properties?fullscreen=true&noh1=true`,
4848
async (page) => {
4949
const firstH2 = page.locator('h2').first();
5050
await expect(firstH2).toBeVisible();

0 commit comments

Comments
 (0)