react-styleguidist icon indicating copy to clipboard operation
react-styleguidist copied to clipboard

End-to-end tests with Cypress

Open sapegin opened this issue 7 years ago • 10 comments

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)

sapegin avatar Jan 13 '18 12:01 sapegin

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.

glebez avatar Mar 07 '18 14:03 glebez

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

sapegin avatar Mar 08 '18 10:03 sapegin

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

haquezameer avatar Aug 19 '19 05:08 haquezameer

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

sapegin avatar Aug 19 '19 09:08 sapegin

ok @sapegin. I am taking this up.

haquezameer avatar Aug 19 '19 14:08 haquezameer

is this available to work on?

Thanks

dhuang612 avatar Oct 15 '19 19:10 dhuang612

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

sapegin avatar Oct 16 '19 07:10 sapegin

Hi, I was inspired by this issue, and already made a pull request with some tests, you can check and correct me if necessary. I think it must cover all unchecked boxes above.

milafreckled avatar Oct 05 '21 09:10 milafreckled

is it still available to work on?

gulammoyuddin avatar Oct 01 '22 08:10 gulammoyuddin

I would like to contribute. Is it still available?

SivalakshmiViswanathan avatar Jul 26 '23 08:07 SivalakshmiViswanathan