Browse Source

Cypress tests

Vova Tkach 6 years ago
parent
commit
6a9d57d4ae

+ 6 - 0
.gitignore

@@ -31,3 +31,9 @@
 
 # All else
 /hosts/localhost/config/.installed
+
+# Skip cypress libs folder
+/cypress/screenshots
+/cypress/videos
+/node_modules
+/yarn.lock

+ 9 - 0
Makefile

@@ -56,3 +56,12 @@ docker-clr:
 	@-docker stop fave-test
 	@-docker rm fave-test
 	@-docker rmi fave
+
+cy-init:
+	yarn add cypress --dev
+
+cy:
+	yarn cypress run
+
+cy-dev:
+	yarn cypress open

+ 4 - 0
cypress.json

@@ -0,0 +1,4 @@
+{
+  "projectId": "hv532c",
+  "video": false
+}

+ 0 - 0
testing/cypress/integration/control-panel/001_module_index/001_install_mysql.spec.js → cypress/integration/control-panel/001_module_index/001_install_mysql.spec.js


+ 0 - 0
testing/cypress/integration/control-panel/001_module_index/002_top_nav_bar.js → cypress/integration/control-panel/001_module_index/002_top_nav_bar.js


+ 0 - 0
testing/cypress/integration/control-panel/001_module_index/003_pages.js → cypress/integration/control-panel/001_module_index/003_pages.js


+ 0 - 0
testing/cypress/plugins/index.js → cypress/plugins/index.js


+ 0 - 0
testing/cypress/support/commands.js → cypress/support/commands.js


+ 0 - 0
testing/cypress/support/index.js → cypress/support/index.js


+ 5 - 0
package.json

@@ -0,0 +1,5 @@
+{
+  "devDependencies": {
+    "cypress": "^3.2.0"
+  }
+}

+ 0 - 1
testing/cypress.json

@@ -1 +0,0 @@
-{}