From f69b05ccd43be0cad5ef807f5294cfc084eedf95 Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Tue, 9 Apr 2024 19:17:26 -0400 Subject: [PATCH] test: update story maps links to match new behaviour --- src/home/components/Home.test.js | 2 +- src/storyMap/components/StoryMapsToolHome.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/home/components/Home.test.js b/src/home/components/Home.test.js index 7e34a843a..24116c907 100644 --- a/src/home/components/Home.test.js +++ b/src/home/components/Home.test.js @@ -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'); }); diff --git a/src/storyMap/components/StoryMapsToolHome.test.js b/src/storyMap/components/StoryMapsToolHome.test.js index 392b7ff07..6fad33593 100644 --- a/src/storyMap/components/StoryMapsToolHome.test.js +++ b/src/storyMap/components/StoryMapsToolHome.test.js @@ -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'); });