💬(app-impress) replace recent with documents

Replace Recent literal by Documents.
This commit is contained in:
Anthony LC
2024-05-14 10:10:26 +02:00
committed by Anthony LC
parent c0d919ae52
commit a26ee3b868
3 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ test.describe('Pads Panel', () => {
test('checks all the elements are visible', async ({ page }) => { test('checks all the elements are visible', async ({ page }) => {
const panel = page.getByLabel('Pads panel').first(); const panel = page.getByLabel('Pads panel').first();
await expect(panel.getByText('Recents')).toBeVisible(); await expect(panel.getByText('Documents')).toBeVisible();
await expect( await expect(
panel.getByRole('button', { panel.getByRole('button', {

View File

@@ -138,7 +138,7 @@ describe('PanelPads', () => {
screen.getByRole('button', { name: 'Close the pads panel' }), screen.getByRole('button', { name: 'Close the pads panel' }),
).toBeVisible(); ).toBeVisible();
expect(await screen.findByText('Recents')).toBeVisible(); expect(await screen.findByText('Documents')).toBeVisible();
}); });
it('closes and opens the pad panel', async () => { it('closes and opens the pad panel', async () => {
@@ -149,7 +149,7 @@ describe('PanelPads', () => {
render(<Panel />, { wrapper: AppWrapper }); render(<Panel />, { wrapper: AppWrapper });
expect(await screen.findByText('Recents')).toBeVisible(); expect(await screen.findByText('Documents')).toBeVisible();
await userEvent.click( await userEvent.click(
screen.getByRole('button', { screen.getByRole('button', {
@@ -157,7 +157,7 @@ describe('PanelPads', () => {
}), }),
); );
expect(await screen.findByText('Recents')).not.toBeVisible(); expect(await screen.findByText('Documents')).not.toBeVisible();
await userEvent.click( await userEvent.click(
screen.getByRole('button', { screen.getByRole('button', {
@@ -165,6 +165,6 @@ describe('PanelPads', () => {
}), }),
); );
expect(await screen.findByText('Recents')).toBeVisible(); expect(await screen.findByText('Documents')).toBeVisible();
}); });
}); });

View File

@@ -74,7 +74,7 @@ export const Panel = () => {
$css={`border-bottom: 1px solid ${colorsTokens()['primary-300']};`} $css={`border-bottom: 1px solid ${colorsTokens()['primary-300']};`}
> >
<Text $weight="bold" $size="1.25rem"> <Text $weight="bold" $size="1.25rem">
{t('Recents')} {t('Documents')}
</Text> </Text>
<PanelActions /> <PanelActions />
</Box> </Box>