🌐(frontend) add language name to LanguagePicker

The language picker were only showing the language
code, now it shows the language name.
This commit is contained in:
Anthony LC
2024-10-04 13:27:53 +02:00
committed by Anthony LC
parent fe391523c8
commit 8dd7671d1f
5 changed files with 15 additions and 7 deletions

View File

@@ -13,9 +13,11 @@ test.describe('Language', () => {
).toBeVisible();
const header = page.locator('header').first();
await header.getByRole('combobox').getByText('EN').click();
await header.getByRole('option', { name: 'FR' }).click();
await expect(header.getByRole('combobox').getByText('FR')).toBeVisible();
await header.getByRole('combobox').getByText('English').click();
await header.getByRole('option', { name: 'Français' }).click();
await expect(
header.getByRole('combobox').getByText('Français'),
).toBeVisible();
await expect(
page.getByRole('button', {