fix(i18n): localize job email workflows
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user