Skip to content

Instantly share code, notes, and snippets.

@KyleAMathews
Created April 14, 2020 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KyleAMathews/a88885cf6a52b8a0c654319ab544d958 to your computer and use it in GitHub Desktop.
Save KyleAMathews/a88885cf6a52b8a0c654319ab544d958 to your computer and use it in GitHub Desktop.
describe('My home page', () => {
beforeEach(() => {
cy.visit('/')
})
/*
* TODO: make this test work
*/
it('contains the text hello gatsby', () => {
expect(cy.getByText('sup')).should('eq', 'Hello Gatsby')
})
})
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}
import 'gatsby-cypress'
// custom commands?
// import './commands'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment