Skip to content

Commit

Permalink
fix: update tests to match new menu string
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Mar 21, 2024
1 parent 980b364 commit 6265bf3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/storyMap/components/StoryMapForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ test('StoryMapForm: Move chapter down with menu', async () => {
});

const menuButton = within(chapter1).getByRole('button', {
name: 'Open menu',
name: 'More options',
});
await act(async () => fireEvent.click(menuButton));

Expand Down Expand Up @@ -774,7 +774,7 @@ test('StoryMapForm: Move chapter up with menu', async () => {
});

const menuButton = within(chapter2).getByRole('button', {
name: 'Open menu',
name: 'More options',
});
await act(async () => fireEvent.click(menuButton));

Expand Down Expand Up @@ -835,7 +835,7 @@ test('StoryMapForm: Show correct sort buttons if chapter is first', async () =>
name: 'Chapter 1',
});
const menuButton = within(chapter1).getByRole('button', {
name: 'Open menu',
name: 'More options',
});
await act(async () => fireEvent.click(menuButton));
const menu = screen.getByRole('menu', {
Expand All @@ -859,7 +859,7 @@ test('StoryMapForm: Show correct sort buttons if chapter is last', async () => {
name: 'Chapter 3',
});
const menuButton = within(chapter3).getByRole('button', {
name: 'Open menu',
name: 'More options',
});
await act(async () => fireEvent.click(menuButton));
const menu = screen.getByRole('menu', {
Expand All @@ -883,7 +883,7 @@ test('StoryMapForm: Delete chapter', async () => {
name: 'Chapter 1',
});
const menuButton = within(chapter1).getByRole('button', {
name: 'Open menu',
name: 'More options',
});
await act(async () => fireEvent.click(menuButton));
const menu = screen.getByRole('menu', {
Expand Down

0 comments on commit 6265bf3

Please sign in to comment.