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

E2E testing a component with this library #78

Open
Foxandxss opened this issue Dec 9, 2019 · 0 comments
Open

E2E testing a component with this library #78

Foxandxss opened this issue Dec 9, 2019 · 0 comments

Comments

@Foxandxss
Copy link

Say I have a component like:

<div class="pretty p-default p-smooth p-curve p-thick">
  <input type="checkbox" name="foo />
  <div class="state p-info-o">
    <label>Please read our
      <a href="link" target="_blank"
        class="checkbox-link">privacy terms
    </label>
  </div>
</div>

If I am not mistaken, this library is going to hide the browser checkbox and replace it with a painted checkbox. So far so good. An E2E library (say testcafé) will clickt the checkbox and move on. The issue comes when you have an anchor tag inside it. It will take preference over the checkbox so it will click the the link and fail. I haven't seen a way to make the checkbox itself a priority.

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