Skip to content

Commit ab871fa

Browse files
committed
test: fix e2e test
1 parent 7f7405a commit ab871fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

e2e/tests/components/auto-link.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { expect, test } from '@playwright/test'
2+
import { BASE } from '../../utils/env'
23

34
test.beforeEach(async ({ page }) => {
45
await page.goto('components/auto-link.html')
@@ -24,6 +25,6 @@ test('should render config correctly', async ({ page }) => {
2425
const locator = page.locator('.e2e-theme-content #config a')
2526

2627
await expect(locator).toHaveText('text')
27-
await expect(locator).toHaveAttribute('href', '/')
28+
await expect(locator).toHaveAttribute('href', BASE)
2829
await expect(locator).toHaveAttribute('aria-label', 'label')
2930
})

0 commit comments

Comments
 (0)