зеркало из https://github.com/github/docs.git
fixing tests
This commit is contained in:
Родитель
18ffa1e900
Коммит
7f6e24474d
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче