|
| 1 | +import { exampleAppTest } from '../../common/exampleAppTest'; |
| 2 | +import { translationMethodsTest } from '../../common/translationMethodsTest'; |
| 3 | +import { exampleAppDevTest } from '../../common/exampleAppDevTest'; |
| 4 | + |
| 5 | +context( |
| 6 | + 'Next with app router (with next-intl) in dev mode', |
| 7 | + { retries: 5 }, |
| 8 | + () => { |
| 9 | + const url = 'http://localhost:8125'; |
| 10 | + const translationMethods = url + '/en/translation-methods'; |
| 11 | + exampleAppTest(url); |
| 12 | + translationMethodsTest(translationMethods, { |
| 13 | + en: [ |
| 14 | + { text: 'This is a key', count: 2 }, |
| 15 | + { text: 'This is key with params value value2', count: 6 }, |
| 16 | + { |
| 17 | + text: 'This is a key with tags bold value', |
| 18 | + count: 2, |
| 19 | + testId: 'translationWithTags', |
| 20 | + }, |
| 21 | + { text: 'Translation in translation', count: 2 }, |
| 22 | + ], |
| 23 | + de: [ |
| 24 | + { text: 'Dies ist ein Schlüssel', count: 2 }, |
| 25 | + { |
| 26 | + text: 'Dies ist ein Schlüssel mit den Parametern value value2', |
| 27 | + count: 6, |
| 28 | + }, |
| 29 | + { |
| 30 | + text: 'Dies ist ein Schlüssel mit den Tags bold value', |
| 31 | + count: 2, |
| 32 | + testId: 'translationWithTags', |
| 33 | + }, |
| 34 | + { text: 'Translation in translation', count: 2 }, |
| 35 | + ], |
| 36 | + }); |
| 37 | + |
| 38 | + exampleAppDevTest(url, { noLoading: true }); |
| 39 | + } |
| 40 | +); |
0 commit comments