Giter VIP home page Giter VIP logo

sudoku-app-base's Introduction

sudoku-app-base CI cypress version

Example Sudoku React application used for "Testing for Good" Cypress workshop

Testing for Good workshop

The example application is used during my Cypress v10 Fundamentals free course.

Original Sudoku game copied from https://github.com/raravi/sudoku and you can play it at https://sudoku-raravi.vercel.app/.

Sudoku application running locally

Requirements

You need Node v14+ installed on your local machine. You can check by running:

$ node -v
v16.14.0
$ npm -v
8.11.0

Clone the repository to your local machine and install its dependencies

$ git clone [email protected]:bahmutov/sudoku-app-base.git
$ cd sudoku-app-base
$ npm install

Check the application starts, and verify the application works at the URL localhost:3000

$ npm start
$ open localhost:3000

Check if Cypress opens

$ npx cypress open

If you see the dialog below, you are good to go!

Cypress opens

Topics

This workshop "End-to-End & Component Testing Using Cypress" covers the following topics:

  • installing Cypress and setting up a testing project
  • writing your first full end-to-end test
    • the loads spec
    • the modes spec
    • the hint spec
  • controlling the time in your application to make the tests fast
    • the timer spec
  • writing your first React component test
    • pick the testing framework
    • write the Timer component spec
    • numbers component spec
    • difficulty component spec
    • overlay component spec with network stubbing
    • status section component test with screenshots
    • the Game component vs play E2E test
    • https://slides.com/bahmutov/the-fuzzy-line
  • running Cypress tests on CI using GitHub Actions
  • https://slides.com/bahmutov/test-components-without-fear

The workshop should take 2-3 hours following the instructor's lead.

Small print

Author: Gleb Bahmutov <[email protected]> © 2022

License: MIT - do anything with the code, but don't blame me if it does not work.

Support: if you find any problems with this module, email / tweet / open issue on Github

sudoku-app-base's People

Contributors

bahmutov 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.