test: update tests to use English translation strings

Tests were asserting against hardcoded German strings that were replaced
with t() calls. Updated to match the English translation values rendered
by TranslationProvider in the test environment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Isaias Tavares
2026-04-12 16:46:03 -03:00
parent 9c42a01391
commit ecbb1de8de
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ describe('FilesPage', () => {
expect(screen.getByTestId('file-manager')).toBeInTheDocument();
});
expect(screen.getByText(/2 Dateien/)).toBeInTheDocument();
expect(screen.getByText(/2 files for/i)).toBeInTheDocument();
});
});
@@ -205,7 +205,7 @@ describe('FilesPage', () => {
expect(screen.getByTestId('file-manager')).toBeInTheDocument();
});
expect(screen.getByRole('heading', { name: /Dateien & Dokumente/i })).toBeInTheDocument();
expect(screen.getByRole('heading', { name: /Files & Documents/i })).toBeInTheDocument();
});
});
});
+2 -2
View File
@@ -118,7 +118,7 @@ describe('PhotosPage', () => {
expect(screen.getByTestId('photo-gallery')).toBeInTheDocument();
});
expect(screen.getByText(/1 Fotos/)).toBeInTheDocument();
expect(screen.getByText(/1 photos for/i)).toBeInTheDocument();
});
});
@@ -224,7 +224,7 @@ describe('PhotosPage', () => {
expect(screen.getByTestId('photo-gallery')).toBeInTheDocument();
});
expect(screen.getByRole('heading', { name: /fotos/i })).toBeInTheDocument();
expect(screen.getByRole('heading', { name: /photos/i })).toBeInTheDocument();
});
});
});