Skip to content

Commit

Permalink
initial cypress setup
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvogt committed Nov 28, 2023
1 parent cb7cc6f commit e5b9749
Show file tree
Hide file tree
Showing 23 changed files with 3,212 additions and 546 deletions.
3 changes: 3 additions & 0 deletions frontend/.env.cypress
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BASE_URL=http://localhost:4010
USERNAME=regularuser1
PASSWORD=developer
5 changes: 5 additions & 0 deletions frontend/.env.cypress.mock
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Test against prod build hosted by lightweight http server
BASE_URL=http://localhost:9001

# Test against local dev server
# BASE_URL=http://localhost:4010
14 changes: 14 additions & 0 deletions frontend/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,20 @@
}
]
}
},
{
"files": ["./src/__tests__/cypress/**/*.ts"],
"parserOptions": {
"project": ["./src/__tests__/cypress/tsconfig.json"]
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"plugin:cypress/recommended"
]
}
]
}
Loading

0 comments on commit e5b9749

Please sign in to comment.