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

Add example of navigation testing #22

Open
DavidFrahm opened this issue Dec 3, 2018 · 0 comments
Open

Add example of navigation testing #22

DavidFrahm opened this issue Dec 3, 2018 · 0 comments

Comments

@DavidFrahm
Copy link

I would love to see this repo cover a scenario where you navigate across pages. Ideally covering navigation handled two ways: one via a simple stencil route link, and another via a button which calls a function to programatically navigate.

For example:

  1. Load the root url: "/"
  2. Find a navigation link: <stencil-route-link url='/page-2' ...
  3. Click the link
  4. Assert page is Page 2
  5. Find a navigation button <button onClick={() => this.gotoPage3()} ...
  6. Click the button
  7. Assert page is Page 3
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