✏️(frontend) replace Word / Open Office by Docx
Replace the naming of the select export options from Word / Open Office to Docx.
This commit is contained in:
@@ -29,9 +29,7 @@ test.describe('Doc Export', () => {
|
|||||||
.first(),
|
.first(),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(
|
await expect(
|
||||||
page.getByText(
|
page.getByText('Download your document in a .docx or .pdf format.'),
|
||||||
'Upload your docs to a Microsoft Word, Open Office or PDF document',
|
|
||||||
),
|
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(
|
await expect(
|
||||||
page.getByRole('combobox', { name: 'Template' }),
|
page.getByRole('combobox', { name: 'Template' }),
|
||||||
@@ -95,7 +93,7 @@ test.describe('Doc Export', () => {
|
|||||||
.click();
|
.click();
|
||||||
|
|
||||||
await page.getByRole('combobox', { name: 'Format' }).click();
|
await page.getByRole('combobox', { name: 'Format' }).click();
|
||||||
await page.getByRole('option', { name: 'Word / Open Office' }).click();
|
await page.getByRole('option', { name: 'Docx' }).click();
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.getByRole('button', {
|
.getByRole('button', {
|
||||||
|
|||||||
@@ -179,9 +179,7 @@ export const ModalExport = ({ onClose, doc }: ModalExportProps) => {
|
|||||||
$gap="1rem"
|
$gap="1rem"
|
||||||
>
|
>
|
||||||
<Text $variation="600" $size="sm">
|
<Text $variation="600" $size="sm">
|
||||||
{t(
|
{t('Download your document in a .docx or .pdf format.')}
|
||||||
'Upload your docs to a Microsoft Word, Open Office or PDF document.',
|
|
||||||
)}
|
|
||||||
</Text>
|
</Text>
|
||||||
<Select
|
<Select
|
||||||
clearable={false}
|
clearable={false}
|
||||||
@@ -197,7 +195,7 @@ export const ModalExport = ({ onClose, doc }: ModalExportProps) => {
|
|||||||
fullWidth
|
fullWidth
|
||||||
label={t('Format')}
|
label={t('Format')}
|
||||||
options={[
|
options={[
|
||||||
{ label: t('Word / Open Office'), value: DocDownloadFormat.DOCX },
|
{ label: t('Docx'), value: DocDownloadFormat.DOCX },
|
||||||
{ label: t('PDF'), value: DocDownloadFormat.PDF },
|
{ label: t('PDF'), value: DocDownloadFormat.PDF },
|
||||||
]}
|
]}
|
||||||
value={format}
|
value={format}
|
||||||
|
|||||||
Reference in New Issue
Block a user