Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adds first dummy test
  • Loading branch information
moigonzalez committed Oct 15, 2019
1 parent 731f438 commit ff88b2e
Show file tree
Hide file tree
Showing 9 changed files with 965 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .eslintrc.js
Expand Up @@ -7,6 +7,7 @@ module.exports = {
'airbnb',
'prettier',
"prettier/react",
'plugin:cypress/recommended',
],
globals: {
Atomics: 'readonly',
Expand All @@ -23,6 +24,7 @@ module.exports = {
plugins: [
'react',
'prettier',
'cypress',
],
rules: {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
Expand Down
1 change: 1 addition & 0 deletions cypress.json
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions cypress/fixtures/example.json
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}
7 changes: 7 additions & 0 deletions cypress/integration/homepage.js
@@ -0,0 +1,7 @@
describe('My First Test', () => {
cy.visit("https://pwascanit.com/");

it('Does not do much!', () => {
expect(true).to.equal(true)
})
});
17 changes: 17 additions & 0 deletions cypress/plugins/index.js
@@ -0,0 +1,17 @@
// ***********************************************************
// 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
}
25 changes: 25 additions & 0 deletions cypress/support/commands.js
@@ -0,0 +1,25 @@
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add("login", (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This is will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
20 changes: 20 additions & 0 deletions cypress/support/index.js
@@ -0,0 +1,20 @@
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')

0 comments on commit ff88b2e

Please sign in to comment.