fix(i18n): localize job email workflows

This commit is contained in:
cesnimda
2026-08-29 22:45:49 +02:00
parent ee8eacf0de
commit 3c9b22c97e
8 changed files with 469 additions and 144 deletions
@@ -35,6 +35,7 @@ function renderPage() {
describe('GmailReviewPage', () => {
beforeEach(() => {
window.localStorage.clear();
mockedApi.get.mockImplementation((url: string) => {
if (url === '/gmail/review-candidates') {
return Promise.resolve({
@@ -102,4 +103,13 @@ describe('GmailReviewPage', () => {
});
});
});
test('renders the review workflow in Norwegian Bokmål', async () => {
window.localStorage.setItem('uiLanguage', 'nb');
renderPage();
expect(await screen.findByText('Kontrollkø for Gmail')).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Knytt til beste jobbtreff' })).toBeInTheDocument();
expect(screen.getByLabelText('Kontrollnotater')).toBeInTheDocument();
});
});