💬(app-impress) replace recent with documents
Replace Recent literal by Documents.
This commit is contained in:
@@ -13,7 +13,7 @@ test.describe('Pads Panel', () => {
|
||||
test('checks all the elements are visible', async ({ page }) => {
|
||||
const panel = page.getByLabel('Pads panel').first();
|
||||
|
||||
await expect(panel.getByText('Recents')).toBeVisible();
|
||||
await expect(panel.getByText('Documents')).toBeVisible();
|
||||
|
||||
await expect(
|
||||
panel.getByRole('button', {
|
||||
|
||||
@@ -138,7 +138,7 @@ describe('PanelPads', () => {
|
||||
screen.getByRole('button', { name: 'Close the pads panel' }),
|
||||
).toBeVisible();
|
||||
|
||||
expect(await screen.findByText('Recents')).toBeVisible();
|
||||
expect(await screen.findByText('Documents')).toBeVisible();
|
||||
});
|
||||
|
||||
it('closes and opens the pad panel', async () => {
|
||||
@@ -149,7 +149,7 @@ describe('PanelPads', () => {
|
||||
|
||||
render(<Panel />, { wrapper: AppWrapper });
|
||||
|
||||
expect(await screen.findByText('Recents')).toBeVisible();
|
||||
expect(await screen.findByText('Documents')).toBeVisible();
|
||||
|
||||
await userEvent.click(
|
||||
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(
|
||||
screen.getByRole('button', {
|
||||
@@ -165,6 +165,6 @@ describe('PanelPads', () => {
|
||||
}),
|
||||
);
|
||||
|
||||
expect(await screen.findByText('Recents')).toBeVisible();
|
||||
expect(await screen.findByText('Documents')).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -74,7 +74,7 @@ export const Panel = () => {
|
||||
$css={`border-bottom: 1px solid ${colorsTokens()['primary-300']};`}
|
||||
>
|
||||
<Text $weight="bold" $size="1.25rem">
|
||||
{t('Recents')}
|
||||
{t('Documents')}
|
||||
</Text>
|
||||
<PanelActions />
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user