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:
Erik Montes 2023-10-05 05:54:36 -07:00 committed by GitHub
parent 2571dfa49d
commit 8860134316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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();
});
});

View File

@ -721,7 +721,7 @@ function ListView({
{/* Empty content */}
<Table.EmptyBody
contentType={headerLayoutTitle}
aciton={getCreateAction({ variant: 'secondary' })}
action={getCreateAction({ variant: 'secondary' })}
/>
{/* Content */}
<Body.Root