From 6687e59d22d332a0518962e0990c31198fb1167a Mon Sep 17 00:00:00 2001 From: mkbeefcake Date: Sat, 30 Sep 2023 19:12:39 +0000 Subject: [PATCH] Fix 4006: update stories for progress bar --- packages/ui/test/council/pages/Election.test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ui/test/council/pages/Election.test.tsx b/packages/ui/test/council/pages/Election.test.tsx index 5b9392cd4b..46d8bf24ee 100644 --- a/packages/ui/test/council/pages/Election.test.tsx +++ b/packages/ui/test/council/pages/Election.test.tsx @@ -107,7 +107,7 @@ describe('UI: Election page', () => { const { queryByText } = await renderComponent() - expect(queryByText('Stage')).not.toBeNull() + expect(queryByText('Round')).not.toBeNull() }) describe('Active', () => { @@ -119,7 +119,7 @@ describe('UI: Election page', () => { it('Displays stage and round', async () => { const { queryByText } = await renderComponent() - expect(queryByText('Announcing Period')).toBeInTheDocument() + expect(queryByText(/Announcing ends in/i)).toBeInTheDocument() }) describe('Tabs', () => { @@ -185,7 +185,7 @@ describe('UI: Election page', () => { it('Displays stage', async () => { const { queryByText } = await renderComponent() - expect(queryByText(/Voting period/i)).not.toBeNull() + expect(queryByText(/Voting ends in/i)).not.toBeNull() }) it('No accounts', async () => { @@ -276,7 +276,7 @@ describe('UI: Election page', () => { it('Displays stage, remaining length, and no election round', async () => { const { queryByText } = await renderComponent() - expect(queryByText(/Revealing period/i)).toBeInTheDocument() + expect(queryByText(/Revealing ends in/i)).toBeInTheDocument() expect(queryByText(/period remaining length/i)?.parentElement?.nextElementSibling).toHaveTextContent('< 1 min') expect(loaderSelector(true)).toHaveLength(1) })