1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Sidebar refactor: scope css + more (#20837)

* refactor sidebar, scope css, wire up nav events to link component, update tests

* remove link onClick analytics event

* fix: missing key on breadcrumbs
This commit is contained in:
Mike Surowiec
2021-08-12 15:28:32 -04:00
committed by GitHub
parent 76dc14a80e
commit c433c43019
14 changed files with 218 additions and 335 deletions

View File

@@ -462,7 +462,9 @@ describe.skip('next/link client-side navigation', () => {
response.url().startsWith('http://localhost:4001/_next/data')
),
page.waitForNavigation({ waitUntil: 'networkidle2' }),
page.click('.sidebar-articles:nth-child(2) .sidebar-article:nth-child(1) a'),
page.click(
'[data-testid=sidebar-article-group]:nth-child(2) [data-testid=sidebar-article]:nth-child(1) a'
),
])
expect(response.status()).toBe(200)