Skip to content

Commit

Permalink
test(e2e): fix unawaited assertion (#6442)
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 authored Apr 22, 2024
1 parent 3ff78f6 commit 37b6291
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/tests/desk/deprecatedFields.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ for (const type of allTypes) {

await page.waitForSelector(`data-testid=deprecated-badge-${type}`)

const deprecatedBadge = await page.getByTestId(`deprecated-badge-${type}`)
const deprecatedMessage = await page.getByTestId(`deprecated-message-${type}`)
const deprecatedBadge = page.getByTestId(`deprecated-badge-${type}`)
const deprecatedMessage = page.getByTestId(`deprecated-message-${type}`)

expect(deprecatedBadge).toHaveText('deprecated')
expect(deprecatedMessage).toBeVisible()
await expect(deprecatedMessage).toBeVisible()
await expect(deprecatedBadge).toHaveText('deprecated')
})
}

0 comments on commit 37b6291

Please sign in to comment.