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

Create elementToNotBeVisible #50

Open
sabrina-ciaciura opened this issue Mar 30, 2023 · 1 comment
Open

Create elementToNotBeVisible #50

sabrina-ciaciura opened this issue Mar 30, 2023 · 1 comment

Comments

@sabrina-ciaciura
Copy link

  • Should loop through and if element is visible, keep trying again.
  • Should fail if element persists to be visible
  • Passes when promise is ultimately rejected and element is not visible
@sabrina-ciaciura sabrina-ciaciura changed the title Create elementToNotBeVisible loop Create elementToNotBeVisible Mar 30, 2023
@sabrina-ciaciura
Copy link
Author

const expectTitleNotExists = async (screen, title) => { try { await screen.findByText(title, {}, { timeout: 100 }) expect(false).toBeTruthy() } catch { expect(true).toBeTruthy() } }

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

No branches or pull requests

1 participant