Skip to content
Branch: master
Find file History
bahmutov Clean up readme - remove duplicate feature lists (#299)
* move first list

* more lists

* more examples moved

* move more

* more examples

* update all blog recipes

* add two items

* move unit testing readme

* even lists moved

* more work

* more moved
Latest commit e509f00 Jun 12, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
cypress ignore uncaught exceptions from static site May 17, 2019
README.md Clean up readme - remove duplicate feature lists (#299) Jun 12, 2019
cypress.json update test to account for different logo on static site May 17, 2019
package.json fix command May 17, 2019

README.md

Dynamic tests

You can generate tests from the data you have, see cypress/integration/spec.js

  • run same test against different viewport resolutions
  • run same test against different sub-domains of your site
  • Generate tests based on the fetched data

Dynamic data

File cypress/integration/dynamic-spec.js shows that sometimes the data might be dynamic and come from external source. You cannot ask for this kind of data from the test itself, since it is too late. There are two workarounds:

  1. you can fetch data using a script that runs before Cypress starts. Save the results as a JSON file and load data using require. This has an advantage that the data does not change while running the tests, making debugging simpler. See suite called "generated from fixture" for an example.
  2. you can fetch the dynamic data before the tests and save as a local variable or context property, then have multiple tests assert against dynamic data items. See suite called "dynamic users" for example.
You can’t perform that action at this time.