From ed189047b94ff8434a71133792fb9aaadd03a687 Mon Sep 17 00:00:00 2001 From: Ilya Smiyukha <39830587+IlyaSmiyukha@users.noreply.github.com> Date: Wed, 26 Jul 2023 09:41:28 +0200 Subject: [PATCH] Change tests for email subscription modal Co-authored-by: Theophile Sandoz --- packages/ui/src/app/App.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/app/App.stories.tsx b/packages/ui/src/app/App.stories.tsx index 71cf4c65a9..24be224271 100644 --- a/packages/ui/src/app/App.stories.tsx +++ b/packages/ui/src/app/App.stories.tsx @@ -428,7 +428,7 @@ export const EmailSubscriptionModalDecline: Story = { hasRegisteredEmail: false, }, play: async ({ canvasElement }) => { - const screen = within(canvasElement) + const modal = withinModal(canvasElement) const element = await screen.getByText('Sign up to email notifications') expect(element) await userEvent.click(screen.getByText('Not now'))