Skip to content

hex-digital/nuxt-cypress-example

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

example-nuxt-cypress

A Nuxt.js and Cypress starter kit. Examples include testing pages, store state, auth and more.

Cypress

Example tests are found in ~/cypress/integration

  • Install dependencies: yarn
  • Start local server: yarn dev or yarn build && yarn start
  • Start cypress: yarn cypress open
  • Run tests

Test Examples

  • Login
    • Test user is currently logged out (Nuxt auth store has loggedIn equals false
    • Log the user in using Nuxt auth, then test they are logged in (Nuxt auth store has loggedIn equals true)

Video of Cypress logging in

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out Nuxt.js docs.

About

A Nuxt.js and Cypress starter kit. Examples include testing pages, store state, auth and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published