docs/tests/translations/search.js

14 строки
502 B
JavaScript
Исходник Обычный вид История

import { languageKeys } from '../../lib/languages'
import { get } from '../helpers/e2etest.js'
2022-09-12 15:12:07 +03:00
const langs = languageKeys.filter((lang) => lang !== 'en')
// Skipping for now, as we would need to download the indexes with LFS
// in Actions to run these. Explore again after ES switch over.
describe.skip('search', () => {
test.each(langs)('search in %s', async (lang) => {
const res = await get(`/search?language=${lang}&version=dotcom&query=pages`)
expect(res.statusCode).toBe(200)
})
})