This commit is contained in:
Jules Parker 2022-01-13 11:59:43 +01:00
Родитель 18ffa1e900
Коммит 7f6e24474d
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -77,13 +77,13 @@ describe('breadcrumbs', () => {
})
test('English breadcrumbs link to English pages', async () => {
const $ = await getDOM('/en/github/importing-your-projects-to-github')
const $ = await getDOM('/en/get-started/importing-your-projects-to-github')
const $breadcrumbs = $('[data-testid=breadcrumbs] a')
expect($breadcrumbs[0].attribs.href).toBe('/en/github')
})
test('localized breadcrumbs link to localize pages', async () => {
const $ = await getDOM('/ja/github/importing-your-projects-to-github')
const $ = await getDOM('/ja/get-started/importing-your-projects-to-github')
const $breadcrumbs = $('[data-testid=breadcrumbs] a')
expect($breadcrumbs[0].attribs.href).toBe('/ja/github')
})

Просмотреть файл

@ -38,7 +38,7 @@ describe('sidebar', () => {
})
test('adds `data-is-current-page` and `data-is-active-category` properties to the sidebar link for the current page', async () => {
const url = '/en/github/importing-your-projects-to-github/importing-source-code-to-github'
const url = '/en/get-started/importing-your-projects-to-github/importing-source-code-to-github'
const $ = await getDOM(url)
expect($('[data-testid=sidebar] [data-is-active-category=true]').length).toBe(1)
expect($('[data-testid=sidebar] [data-is-current-page=true]').length).toBe(1)