Skip to content

Commit

Permalink
feat: install cli-utils-cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
awgaan authored and varl committed Mar 23, 2020
1 parent d5977c7 commit 5b76611
Show file tree
Hide file tree
Showing 7 changed files with 1,308 additions and 370 deletions.
3 changes: 3 additions & 0 deletions cypress-cucumber-preprocessor.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
nonGlobalStepDefinitions: true,
}
7 changes: 3 additions & 4 deletions cypress.env.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"LOGIN_USERNAME": "admin",
"LOGIN_PASSWORD": "district",
"LOGIN_URL": "localhost:8080",
"APP_URL": "localhost:3000"
"dhis2_base_url": "http://localhost:8080",
"dhis2_username": "admin",
"dhis2_password": "district"
}
4 changes: 3 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"testFiles": "**/*.feature"
"baseUrl": "http://localhost:3000",
"testFiles": "**/*.feature",
"video": false
}
6 changes: 4 additions & 2 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const cucumber = require('cypress-cucumber-preprocessor').default
const plugins = require('@dhis2/cli-utils-cypress/plugins')

module.exports = (on, config) => {
on('file:preprocessor', cucumber())
plugins(on, config)

// Add additional plugins here
}
11 changes: 3 additions & 8 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import './form/index'
import './getAliases'
import './getComparisonData'
import './login'
import './showMoreOptions'
import './stubWithFixture'
import './visitPage'
import './visitWhenStubbed'
import '@dhis2/cli-utils-cypress/support'

// Add additional support functions here
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"devDependencies": {
"@dhis2/cli-app-scripts": "^3.2.2",
"@dhis2/cli-style": "^5.1.0",
"@dhis2/cli-utils-cypress": "^1.0.2",
"@testing-library/jest-dom": "^5.1.0",
"@testing-library/react": "^9.4.0",
"babel-eslint": "^10.0.3",
"babel-preset-env": "^1.7.0",
"babel-preset-react-app": "^9.0.2",
"babel-preset-stage-0": "^6.24.1",
"cypress": "^3.7.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-config-react-app": "^5.0.2",
Expand Down
1,645 changes: 1,291 additions & 354 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 5b76611

Please sign in to comment.