Added readme and updated testhelpers
This commit is contained in:
31
src/Umbraco.Tests.AcceptanceTest/README.md
Normal file
31
src/Umbraco.Tests.AcceptanceTest/README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# Umbraco Acceptance Tests
|
||||
|
||||
### Prerequisite
|
||||
- NodeJS 12+
|
||||
- A running installed Umbraco on url: [https://localhost:44331](https://localhost:44331) (Default development port)
|
||||
- Install using a `SqlServer`/`LocalDb` as the tests execute too fast for `SqlCE` to handle.
|
||||
- User information in `cypress.env.json` (See [Getting started](#getting-started))
|
||||
|
||||
### Getting started
|
||||
First it is important you create a new file in the root of the project called `cypress.env.json`.
|
||||
This file is added to `.gitignore` and can contain values that is different for each developer machine.
|
||||
|
||||
The file need the following content:
|
||||
```
|
||||
{
|
||||
"username": "<email for superadmin>",
|
||||
"password": "<password for superadmin>"
|
||||
}
|
||||
```
|
||||
Replace the `<email for superadmin>` and `<password for superadmin>` placeholders with correct info.
|
||||
|
||||
### Executing tests
|
||||
|
||||
There exists two npm scripts, that can be used to execute the test.
|
||||
|
||||
1. `npm run test`
|
||||
- Executes the tests headless.
|
||||
1. `npm run ui`
|
||||
- Executes the tests in a browser handled by a cypress application.
|
||||
|
||||
In case of errors it is recommended to use the UI to debug.
|
||||
@@ -3,8 +3,8 @@
|
||||
"viewportHeight": 1024,
|
||||
"viewportWidth": 1200,
|
||||
"env": {
|
||||
"username": "<insert username/email>",
|
||||
"password": "<insert password>"
|
||||
"username": "<insert username/email in cypress.env.json>",
|
||||
"password": "<insert password in cypress.env.json>"
|
||||
},
|
||||
"supportFile": "cypress/support/index.ts"
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"cross-env": "^7.0.2",
|
||||
"ncp": "^2.0.0",
|
||||
"cypress": "^4.5.0",
|
||||
"umbraco-cypress-testhelpers": "1.0.0-beta-36"
|
||||
"umbraco-cypress-testhelpers": "1.0.0-beta-38"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": "^3.9.2"
|
||||
|
||||
Reference in New Issue
Block a user