Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend expect assertions when using accessible queries #65

Open
Tracked by #19
zainfathoni opened this issue Dec 25, 2021 · 0 comments
Open
Tracked by #19

Extend expect assertions when using accessible queries #65

zainfathoni opened this issue Dec 25, 2021 · 0 comments
Labels
dx Developer Experience testing Automated testing
Milestone

Comments

@zainfathoni
Copy link
Owner

Further context

Unfortunately, toBeVisible() must be used with the Locator object because I'm getting the error Error: toBeVisible can be only used with Locator object when using the getByRole query.

const heading = await getByRole('heading', {
    name: /biaya kelas/i,
})
await expect(heading).toBeVisible()

Originally posted by @retry19 in #60 (comment)

@zainfathoni zainfathoni added dx Developer Experience testing Automated testing labels Dec 25, 2021
@zainfathoni zainfathoni added this to the Hackathon milestone Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Developer Experience testing Automated testing
Projects
Status: Ready
Development

No branches or pull requests

1 participant