Skip to content

Commit

Permalink
test: fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Apr 15, 2024
1 parent 7f7405a commit ab871fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/tests/components/auto-link.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect, test } from '@playwright/test'
import { BASE } from '../../utils/env'

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

await expect(locator).toHaveText('text')
await expect(locator).toHaveAttribute('href', '/')
await expect(locator).toHaveAttribute('href', BASE)
await expect(locator).toHaveAttribute('aria-label', 'label')
})

0 comments on commit ab871fa

Please sign in to comment.