React-styleguidist: End-to-end tests with Cypress

Created on 13 Jan 2018  Â·  7Comments  Â·  Source: styleguidist/react-styleguidist

Right now we only have unit test and very simple test that check bundles for JS errors in headless Chrome. But we don’t know that Styleguidist is actually usable.

Cypress seems like a good choice.

  • [x] Setup Cypress
  • [x] Write first test
  • [x] Move cypress folder to test folder
  • [ ] Write more tests:

    • [ ] Open a component in isolated mode (should show 1 component), go back (show show all components again)

    • [ ] Open an example in isolated mode (should show 1 example of 1 component), go back (show show all components with all examples again)

    • [ ] Click on a component in the sidebar should scroll to this component

    • [ ] Typing in the search field in the sidebar should filter components in the table of contents (same for sections names)

good first issue help wanted technical debt

All 7 comments

It feels that we can check off first two boxes. And think on breaking the third one into more actionable, i.e. 'write cypress tests for sidebar', since some core test are already in place.

I’ve added a few — feel free to suggest more 🦄

@sapegin @glebez I would like to take this up if it is still open.

@haquezameer Awesome! I'm sure most of the todo items weren't done yet.

ok @sapegin. I am taking this up.

is this available to work on?

Thanks

@dhuang612 sure, there's never too many tests.

Was this page helpful?
0 / 5 - 0 ratings