Giter VIP home page Giter VIP logo

selenium-next's Introduction

selenium-next

To run jest / selenium combo:

npm run ci

To run cypress tests:

npm run ci-cypress

To run the cypress electron app:

npm run dev

npx cypress open

Get Jest to play nice with NextJS

"babel-core": "7.0.0-bridge.0",
"babel-jest": "22.4.3",
"enzyme": "3.2.0",
"enzyme-adapter-react-16": "1.1.1",
"jest": "22.0.1",
"react-addons-test-utils": "15.6.2",
"react-test-renderer": "16.2.0"

Describe how to run server and tests and shutdown

cypress-io/cypress-documentation#355

Most CI providers will automatically kill background processes so you don’t have to worry about cleaning up your server process once Cypress finishes.

However, if you’re running this script locally you’ll have to do a bit more work to collect the backgrounded PID and then kill it after cypress run. https://docs.cypress.io/guides/guides/continuous-integration.html#To-record-tests-running

https://docs.cypress.io/guides/references/best-practices.html#Web-Servers

Best Practice: Start a web server prior to running Cypress in the Test Runner or headless mode.

selenium-next's People

Contributors

chrismlee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.