cosmos-explorer/cypress/integration/notebook
Steve Faulkner 36581fb6d9 Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
..
README.md Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
newNotebook.spec.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
resourceTree.spec.ts Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00

README.md

Notebook end-to-end tests

This describes how to run the tests locally

Stand up a local notebook container instance:

Instructions on how to build and run the container here

Run a local data explorer

Instructions are in DataExplorer/README.md.

Make sure you can run Data Explorer locally from the web browser.

Run cypress tests

  1. Edit the URL for your DataExplorer in the .spec.ts file
  2. Run the test:
cd DataExplorer/cypress
npm i
 npm t -- --spec 'integration/notebook/newNotebook.spec.ts'

To run in Debug mode:

npm run test:debug

This opens Cypress UI

Troubleshooting

  • The tests are recorded in the videos folder.
  • Cypress does not support hover: workarounds here.

References