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 and jordanl17 committed Apr 23, 2024
1 parent 7c82d6f commit 0531a5f
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 0531a5f

Please sign in to comment.