Skip to content

Commit

Permalink
test: update story maps links to match new behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Apr 9, 2024
1 parent 48bc69a commit f69b05c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/home/components/Home.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ test('Home: Display Story Maps', async () => {
expect(items.length).toBe(2);

const link1 = within(items[0]).getByRole('link', { name: 'Story 2' });
expect(link1).toHaveAttribute('href', '/tools/story-maps/lftawa9/id-2');
expect(link1).toHaveAttribute('href', '/tools/story-maps/lftawa9/id-2/edit');
const link2 = within(items[1]).getByRole('link', { name: 'Story 1' });
expect(link2).toHaveAttribute('href', '/tools/story-maps/46h36we/id-1/edit');
});
Expand Down
2 changes: 1 addition & 1 deletion src/storyMap/components/StoryMapsToolHome.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ test('StoryMapsToolHome: user story maps render correctly', async () => {
expect(items.length).toBe(2);

const link2 = within(items[0]).getByRole('link', { name: 'Story 2' });
expect(link2).toHaveAttribute('href', '/tools/story-maps/lftawa9/id-2');
expect(link2).toHaveAttribute('href', '/tools/story-maps/lftawa9/id-2/edit');
const link1 = within(items[1]).getByRole('link', { name: 'Story 1' });
expect(link1).toHaveAttribute('href', '/tools/story-maps/46h36we/id-1/edit');
});
Expand Down

0 comments on commit f69b05c

Please sign in to comment.