Skip to content

Commit

Permalink
#1532 - fix test broken by edit button label key change
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed May 7, 2024
1 parent f2cbfb3 commit 7e361ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ describe('DLS Data Publication Landing page', () => {

await user.click(
await screen.findByRole('button', {
name: 'datapublications.edit_label',
name: 'datapublications.edit.edit_label',
})
);

Expand All @@ -275,7 +275,7 @@ describe('DLS Data Publication Landing page', () => {
renderComponent();

expect(
screen.queryByRole('button', { name: 'datapublications.edit_label' })
screen.queryByRole('button', { name: 'datapublications.edit.edit_label' })
).not.toBeInTheDocument();

const versionPanel = await screen.findByRole('region', {
Expand Down Expand Up @@ -315,7 +315,7 @@ describe('DLS Data Publication Landing page', () => {
renderComponent();

expect(
screen.queryByRole('button', { name: 'datapublications.edit_label' })
screen.queryByRole('button', { name: 'datapublications.edit.edit_label' })
).not.toBeInTheDocument();

expect(
Expand Down

0 comments on commit 7e361ce

Please sign in to comment.