Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions e2e/docs/components/route-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,23 @@
- <RouteLink to="/"><span>text</span></RouteLink>
- <RouteLink to="/"><span>text</span><span>text2</span></RouteLink>

### Hash and query
### Query and hash

- <RouteLink to="/README.md#hash">text</RouteLink>
- <RouteLink to="/README.md?query">text</RouteLink>
- <RouteLink to="/README.md?query#hash">text</RouteLink>
- <RouteLink to="/README.md?query=1#hash">text</RouteLink>
- <RouteLink to="/README.md?query=1&query=2#hash">text</RouteLink>
- <RouteLink to="/README.md#hash?query=1&query=2">text</RouteLink>
- <RouteLink to="/#hash">text</RouteLink>
- <RouteLink to="/?query">text</RouteLink>
- <RouteLink to="/?query#hash">text</RouteLink>
- <RouteLink to="/?query=1#hash">text</RouteLink>
- <RouteLink to="/?query=1&query=2#hash">text</RouteLink>
- <RouteLink to="/#hash?query=1&query=2">text</RouteLink>
- <RouteLink to="#hash">text</RouteLink>
- <RouteLink to="?query">text</RouteLink>
- <RouteLink to="?query#hash">text</RouteLink>
- <RouteLink to="?query=1#hash">text</RouteLink>
- <RouteLink to="?query=1&query=2#hash">text</RouteLink>
- <RouteLink to="#hash?query=1&query=2">text</RouteLink>

### Relative

Expand Down
25 changes: 20 additions & 5 deletions e2e/docs/router/navigate-by-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- [Home with query](/README.md?home=true)
- [Home with query and hash](/README.md?home=true#home)
- [404 with hash](/404.md#404)
- [404 with hash and query](/404.md#404?notFound=true)

## HTML Links

Expand All @@ -14,15 +13,31 @@
<a :href="$withBase('/?home=true')" class="home-with-query">Home</a>
<a :href="$withBase('/?home=true#home')" class="home-with-query-and-hash">Home</a>
<a :href="$withBase('/404.html#404')" class="not-found-with-hash">404</a>
<a :href="$withBase('/404.html#404?notFound=true')" class="not-found-with-hash-and-query">404</a>

## HTML Clean Links

<a :href="$withBase('/')" class="home">Home</a>
<a :href="$withBase('/404')" class="not-found">404</a>
<a :href="$withBase('/?home=true')" class="home-with-query">Home</a>
<a :href="$withBase('/?home=true#home')" class="home-with-query-and-hash">Home</a>
<a :href="$withBase('/404#404')" class="not-found-with-hash">404</a>

## Markdown Clean Links

> Non-recommended usage. HTML paths could not be prepended with `base` correctly.

- [Home](/)
- [404](/404)
- [Home with query](/?home=true)
- [Home with query and hash](/?home=true#home)
- [404 with hash](/404#404)

## Markdown Links with html paths

> Non-recommended usage. HTML paths could not be prepended with `base` correctly.

- [Home](/)
- [404](/404.html)
- [Home with query](/?home=true)
- [Home with query and hash](/?home=true#home)
- [404 with hash](/404.html#404)
- [404 with hash and query](/404.html#404?notFound=true)

> Non-recommended usage. HTML paths could not be prepended with `base` correctly.
66 changes: 45 additions & 21 deletions e2e/docs/router/navigate-by-router.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,61 @@
<button id="home" @click="goHome">Home</button>
<button id="not-found" @click="go404">404</button>

<button id="home-with-query" @click="goHomeWithQuery">Home</button>
<button id="home-with-query-and-hash" @click="goHomeWithQueryAndHash">Home</button>
<button id="not-found-with-hash" @click="go404WithHash">404</button>
<button id="not-found-with-hash-and-query" @click="go404WithHashAndQuery">404</button>
<div id="full">
<button class="home" @click="goHome">Home</button>
<button class="not-found" @click="go404">404</button>
<button class="home-with-query" @click="goHomeWithQuery">Home</button>
<button class="home-with-query-and-hash" @click="goHomeWithQueryAndHash">Home</button>
<button class="not-found-with-hash" @click="go404WithHash">404</button>
</div>

<div id="clean">
<button class="home" @click="goHome">Home</button>
<button class="not-found" @click="go404">404</button>
<button class="home-with-query" @click="goHomeWithQuery">Home</button>
<button class="home-with-query-and-hash" @click="goHomeWithQueryAndHash">Home</button>
<button class="not-found-with-hash" @click="go404WithHash">404</button>
</div>

<script setup lang="ts">
import { useRouter } from 'vuepress/client';

const router = useRouter();

const goHome = () => {
router.push('/');
}

const go404 = () => {
router.push('/404.html');
const goHome = (event) => {
if (event.currentTarget.parentElement.id === 'full') {
router.push('/index.html');
} else {
router.push('/');
}
}

const goHomeWithQuery = () => {
router.push('/?home=true');
const go404 = (event) => {
if (event.currentTarget.parentElement.id === 'full') {
router.push('/404.html');
} else {
router.push('/404');
}
}

const goHomeWithQueryAndHash = () => {
router.push('/?home=true#home');
const goHomeWithQuery = (event) => {
if (event.currentTarget.parentElement.id === 'full') {
router.push('/index.html?home=true');
} else {
router.push('/?home=true');
}
}

const go404WithHash = () => {
router.push('/404.html#404');
const goHomeWithQueryAndHash = (event) => {
if (event.currentTarget.parentElement.id === 'full') {
router.push('/index.html?home=true#home');
} else {
router.push('/?home=true#home');
}
}

const go404WithHashAndQuery = () => {
router.push('/404.html#404?notFound=true');
const go404WithHash = (event) => {
if (event.currentTarget.parentElement.id === 'full') {
router.push('/404.html#404');
} else {
router.push('/404#404');
}
}
</script>
5 changes: 1 addition & 4 deletions e2e/tests/components/route-link.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,32 +142,29 @@
}
})

test('should render hash and query correctly', async ({ page }) => {
test('should render query and hash correctly', async ({ page }) => {
const CONFIGS = [
`${BASE}#hash`,
`${BASE}?query`,
`${BASE}?query#hash`,
`${BASE}?query=1#hash`,
`${BASE}?query=1&query=2#hash`,
`${BASE}#hash?query=1&query=2`,
`${BASE}#hash`,
`${BASE}?query`,
`${BASE}?query#hash`,
`${BASE}?query=1#hash`,
`${BASE}?query=1&query=2#hash`,
`${BASE}#hash?query=1&query=2`,
`#hash`,
`?query`,
`?query#hash`,
`?query=1#hash`,
`?query=1&query=2#hash`,
`#hash?query=1&query=2`,
]

for (const [index, href] of CONFIGS.entries()) {
await expect(
page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index),
).toHaveAttribute('href', href)

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 22, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 20, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (ubuntu-latest, 18, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /home/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 18, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, vite)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 20, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7

Check failure on line 167 in e2e/tests/components/route-link.spec.ts

View workflow job for this annotation

GitHub Actions / e2e (macos-latest, 22, webpack)

[chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly

1) [chromium] › tests/components/route-link.spec.ts:145:1 › should render query and hash correctly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.e2e-theme-content #hash-and-query + ul > li a').first() Expected string: "/#hash" Received: <element(s) not found> Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.e2e-theme-content #hash-and-query + ul > li a').first() 165 | await expect( 166 | page.locator('.e2e-theme-content #hash-and-query + ul > li a').nth(index), > 167 | ).toHaveAttribute('href', href) | ^ 168 | } 169 | }) 170 | at /Users/runner/work/core/core/e2e/tests/components/route-link.spec.ts:167:7
}
})

Expand Down
Loading
Loading