Skip to content

Support assignments and awaiting them #2

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

Closed
thomaslombart opened this issue Sep 14, 2019 · 0 comments · Fixed by #3
Closed

Support assignments and awaiting them #2

thomaslombart opened this issue Sep 14, 2019 · 0 comments · Fixed by #3

Comments

@thomaslombart
Copy link
Collaborator

We need to handle the case where a user stores the result of a find* query in a variable and later on await this variable, for example:

test("an example", async () => {
  // set up
  const myButton = findByText(/submit/i)
  await myButton
})

We need to keep track of the user assignements and check on every one of them if the user effectively uses an await statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant