diff --git a/clients/dashboard/app/components/ProductEditor.vue b/clients/dashboard/app/components/ProductEditor.vue index 4229cb4..f68fcaf 100644 --- a/clients/dashboard/app/components/ProductEditor.vue +++ b/clients/dashboard/app/components/ProductEditor.vue @@ -162,7 +162,10 @@ async function save() { - + + {{ directions.find(item => item.value === state.direction)?.label }} diff --git a/clients/dashboard/app/components/media/Filters.vue b/clients/dashboard/app/components/media/Filters.vue index 775ede8..30673aa 100644 --- a/clients/dashboard/app/components/media/Filters.vue +++ b/clients/dashboard/app/components/media/Filters.vue @@ -135,7 +135,8 @@ function onSort(value: SortValue) { - + {{ sorts.find(item => item.value === sort)?.label }} diff --git a/clients/dashboard/test/e2e/smoke.e2e.ts b/clients/dashboard/test/e2e/smoke.e2e.ts index 3fb0fd9..359f1de 100644 --- a/clients/dashboard/test/e2e/smoke.e2e.ts +++ b/clients/dashboard/test/e2e/smoke.e2e.ts @@ -118,6 +118,18 @@ test('Arabic turns the page right-to-left', async ({ page, goto }) => { await expect(heading(page)).toHaveText('نظرة عامة') }) +test('a filter on screen follows the language, rather than keeping the words it was drawn in', async ({ page, goto }) => { + await goto('/audit') + + await expect(page.getByRole('combobox', { name: 'Entity' })).toHaveText('Any entity') + + await page.getByRole('combobox', { name: 'Reading language' }).click() + await page.getByRole('option', { name: /العربية/ }).click() + + // A select copies its chosen option's text when it is drawn; this one is drawn from its value. + await expect(page.getByRole('combobox', { name: 'الكيان' })).toHaveText('أي كيان') +}) + test('a media entry shows its operation beside the action', async ({ page, goto }) => { await goto('/audit')