Skip to content

Commit

Permalink
Fix 4006: Updated test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbeefcake committed Oct 3, 2023
1 parent 81c88fa commit f5dba63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ interface TooltipProgressBarProps extends ProgressBarProps {
}

const TooltipProgressBar = (props: TooltipProgressBarProps) => {
const [isTooltipActive, setTooltipActive] = useState(false)
const [referenceElementRef, setReferenceElementRef] = useState<HTMLElement | null>(null)
const [popperElementRef, setPopperElementRef] = useState<HTMLDivElement | null>(null)
const [isTooltipActive, setTooltipActive] = useState(false)
const [barHeight, setBarHeight] = useState<'small' | 'big' | 'medium'>('small')
const [arrowPos, setArrowPos] = useState<number>()

Expand Down
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(/Election Progress/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(/Election Progress/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(/Election Progress/i)).toBeInTheDocument()
expect(queryByText(/period remaining length/i)?.parentElement?.nextElementSibling).toHaveTextContent('< 1 min')
expect(loaderSelector(true)).toHaveLength(1)
})
Expand Down

0 comments on commit f5dba63

Please sign in to comment.