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) })