styleguidist/react-styleguidist

End-to-end tests with Cypress

Open

#776 geöffnet am 13. Jan. 2018

Auf GitHub ansehen
 (11 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1.416 Forks)github user discovery
good first issuehelp wantedtechnical debt

Repository-Metriken

Stars
 (11.091 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

  • Setup Cypress
  • Write first test
  • 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)

Contributor Guide