From 1cd13d483384ec604adb8fa8a1dc087eb818379f Mon Sep 17 00:00:00 2001
From: Robert Wagner
Date: Mon, 20 Aug 2018 18:06:03 -0400
Subject: [PATCH] Move cypress and dummy app under test folder
---
.gitignore | 2 +-
cypress.json | 2 ++
cypress/.eslintrc.js | 31 -------------------
cypress/plugins/index.js | 17 ----------
cypress/support/commands.js | 25 ---------------
cypress/support/index.js | 20 ------------
test/.eslintrc.js | 9 ++++--
{cypress => test}/dummy/css/prism.css | 0
{cypress => test}/dummy/css/welcome.css | 0
{cypress => test}/dummy/css/welcome.css.map | 0
{cypress => test}/dummy/index.html | 8 ++---
{cypress => test}/dummy/js/prism.js | 0
{cypress => test}/dummy/sheep.svg | 0
.../integration/test.shepherd.js | 2 +-
{cypress => test}/utils/default-steps.js | 0
{cypress => test}/utils/setup-tour.js | 0
16 files changed, 14 insertions(+), 102 deletions(-)
delete mode 100644 cypress/.eslintrc.js
delete mode 100644 cypress/plugins/index.js
delete mode 100644 cypress/support/commands.js
delete mode 100644 cypress/support/index.js
rename {cypress => test}/dummy/css/prism.css (100%)
rename {cypress => test}/dummy/css/welcome.css (100%)
rename {cypress => test}/dummy/css/welcome.css.map (100%)
rename {cypress => test}/dummy/index.html (91%)
rename {cypress => test}/dummy/js/prism.js (100%)
rename {cypress => test}/dummy/sheep.svg (100%)
rename {cypress => test}/integration/test.shepherd.js (98%)
rename {cypress => test}/utils/default-steps.js (100%)
rename {cypress => test}/utils/setup-tour.js (100%)
diff --git a/.gitignore b/.gitignore
index 90ea1a594..0deaead2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,7 @@
/.log/
/.nyc_output/
/coverage/
-/cypress/videos/
+/cypress/
/dist/
/node_modules/
/.DS_Store
diff --git a/cypress.json b/cypress.json
index 60ed5aa53..82730c49d 100644
--- a/cypress.json
+++ b/cypress.json
@@ -1,3 +1,5 @@
{
+ "fixturesFolder": "test/fixtures",
+ "integrationFolder": "test/integration",
"video": false
}
diff --git a/cypress/.eslintrc.js b/cypress/.eslintrc.js
deleted file mode 100644
index a20d7a37f..000000000
--- a/cypress/.eslintrc.js
+++ /dev/null
@@ -1,31 +0,0 @@
-module.exports = {
- root: true,
- parserOptions: {
- ecmaVersion: 2017,
- sourceType: 'module'
- },
- plugins: [
- 'mocha'
- ],
- extends: [
- 'eslint:recommended',
- 'plugin:mocha/recommended'
- ],
- globals: {
- Cypress: false,
- Shepherd: false,
- assert: false,
- cy: false,
- document: false,
- expect: false,
- window: false
- },
- env: {
- browser: false,
- mocha: true,
- node: true
- },
- rules: {
- 'no-console': 'off'
- }
-};
diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js
deleted file mode 100644
index 2cdeb6d61..000000000
--- a/cypress/plugins/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-// ***********************************************************
-// 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
-}
diff --git a/cypress/support/commands.js b/cypress/support/commands.js
deleted file mode 100644
index c1f5a772e..000000000
--- a/cypress/support/commands.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// ***********************************************
-// 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) => { ... })
diff --git a/cypress/support/index.js b/cypress/support/index.js
deleted file mode 100644
index d68db96df..000000000
--- a/cypress/support/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// ***********************************************************
-// 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')
diff --git a/test/.eslintrc.js b/test/.eslintrc.js
index f8d944c93..a20d7a37f 100644
--- a/test/.eslintrc.js
+++ b/test/.eslintrc.js
@@ -12,10 +12,13 @@ module.exports = {
'plugin:mocha/recommended'
],
globals: {
- document: false,
- window: false,
+ Cypress: false,
+ Shepherd: false,
assert: false,
- Shepherd: false
+ cy: false,
+ document: false,
+ expect: false,
+ window: false
},
env: {
browser: false,
diff --git a/cypress/dummy/css/prism.css b/test/dummy/css/prism.css
similarity index 100%
rename from cypress/dummy/css/prism.css
rename to test/dummy/css/prism.css
diff --git a/cypress/dummy/css/welcome.css b/test/dummy/css/welcome.css
similarity index 100%
rename from cypress/dummy/css/welcome.css
rename to test/dummy/css/welcome.css
diff --git a/cypress/dummy/css/welcome.css.map b/test/dummy/css/welcome.css.map
similarity index 100%
rename from cypress/dummy/css/welcome.css.map
rename to test/dummy/css/welcome.css.map
diff --git a/cypress/dummy/index.html b/test/dummy/index.html
similarity index 91%
rename from cypress/dummy/index.html
rename to test/dummy/index.html
index cfeb451bf..6cd3c9615 100644
--- a/cypress/dummy/index.html
+++ b/test/dummy/index.html
@@ -11,8 +11,8 @@
-
-
+
+
@@ -66,7 +66,7 @@ Example
-
+
@@ -77,6 +77,6 @@ Example
-
+