mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
fix: typo causing action button to not show in empty list (#18252)
* fix: typo causing action button to not show in empty list * test: update test to only match first occurance
This commit is contained in:
parent
2571dfa49d
commit
8860134316
@ -19,6 +19,6 @@ test.describe('List View', () => {
|
||||
|
||||
await expect(page).toHaveTitle('Content Manager');
|
||||
await expect(page.getByRole('heading', { name: 'testing' })).toBeVisible();
|
||||
await expect(page.getByRole('link', { name: /Create new entry/ })).toBeVisible();
|
||||
await expect(page.getByRole('link', { name: /Create new entry/ }).first()).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
@ -721,7 +721,7 @@ function ListView({
|
||||
{/* Empty content */}
|
||||
<Table.EmptyBody
|
||||
contentType={headerLayoutTitle}
|
||||
aciton={getCreateAction({ variant: 'secondary' })}
|
||||
action={getCreateAction({ variant: 'secondary' })}
|
||||
/>
|
||||
{/* Content */}
|
||||
<Body.Root
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user