Slightly tweaked readme

Specified click as per PR review
This commit is contained in:
Emma Garland
2020-08-24 12:39:30 +01:00
parent 0df55d7894
commit 711b9b9c12
2 changed files with 7 additions and 8 deletions

View File

@@ -1,18 +1,18 @@
# Umbraco Acceptance Tests
### Prerequisite
### Prerequisites
- 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
The tests is located in the project/folder named `Umbraco.Tests.AcceptanceTests`. Ensur to run `npm install` in that folder, or let your IDE do that.
The tests are located in the project/folder as `Umbraco.Tests.AcceptanceTests`. Make sure you run `npm install` in that folder, or let your IDE do that.
Next, it is important you create a new file in the root of the project called `cypress.env.json`.
This file is already added to `.gitignore` and can contain values that is different for each developer machine.
Next, it is important that you create a new file in the root of the project called `cypress.env.json`.
This file is already added to `.gitignore` and can contain values that are different for each developer machine.
The file need the following content:
The file needs the following content:
```
{
"username": "<email for superadmin>",
@@ -24,8 +24,7 @@ Replace the `<email for superadmin>` and `<password for superadmin>` placeholder
### Executing tests
There exists two npm scripts, that can be used to execute the test.
There are two npm scripts that can be used to execute the test:
1. `npm run test`
- Executes the tests headless.

View File

@@ -29,7 +29,7 @@ context('Backoffice Tour', () => {
//assert
cy.get('[data-element="help-tours"]').should("be.visible");
cy.get('[data-element="help-tours"]').click();
cy.get('[data-element="help-tours"] .umb-help-list').first().click();
cy.get('[data-element="help-tours"] .umb-progress-circle', { timeout: 60000 }).contains('17%');
cy.umbracoGlobalHelp().should("be.visible");
});