Skip to content

Commit 09e01a9

Browse files
committed
Fix flake hopefully
1 parent 193ae8d commit 09e01a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/Controllers/ProPlanController/BillingOptions/BillingOptions.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe('BillingOptions', () => {
155155

156156
const annualBtn = await screen.findByRole('button', { name: 'Annual' })
157157
expect(annualBtn).toBeInTheDocument()
158-
expect(annualBtn).toHaveClass('bg-ds-primary-base')
158+
await waitFor(() => expect(annualBtn).toHaveClass('bg-ds-primary-base'))
159159

160160
const monthlyBtn = await screen.findByRole('button', {
161161
name: 'Monthly',

src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/Controllers/TeamPlanController/BillingOptions/BillingOptions.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe('BillingOptions', () => {
138138

139139
const annualBtn = await screen.findByRole('button', { name: 'Annual' })
140140
expect(annualBtn).toBeInTheDocument()
141-
expect(annualBtn).toHaveClass('bg-ds-primary-base')
141+
await waitFor(() => expect(annualBtn).toHaveClass('bg-ds-primary-base'))
142142

143143
const monthlyBtn = await screen.findByRole('button', {
144144
name: 'Monthly',

0 commit comments

Comments
 (0)