Cypress is a JavaScript end-to-end testing framework that allows you to write tests that run in a browse
-
clone git repository ( $
https://github.com/amit-003/Hotel-search-test.git
) -
$
cd Hotel-search-test
-
./node_modules/.bin/cypress install
-
run command $
npm install
1st method:
If you run $ ./node_modules/.bin/cypress run
, it will show the passed test.
2nd method:
If you run $ ./node_modules/.bin/cypress open
, and click on "hotelsearch_spec.js" the Chrome browser will open, where we have the following test passed.