Skip to content

Commit

Permalink
Fix 4006: update stories for progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbeefcake committed Sep 30, 2023
1 parent 81c88fa commit 6687e59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ui/test/council/pages/Election.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('UI: Election page', () => {

const { queryByText } = await renderComponent()

expect(queryByText('Stage')).not.toBeNull()
expect(queryByText('Round')).not.toBeNull()
})

describe('Active', () => {
Expand All @@ -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', () => {
Expand Down Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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)
})
Expand Down

0 comments on commit 6687e59

Please sign in to comment.