Skip to content

Commit

Permalink
[Security] Updates Cypress README.md to show how to run-as-ci with Cy…
Browse files Browse the repository at this point in the history
…press UI [skip ci] (#68728)

## Summary

Updates Cypress README.md to show how to `run-as-ci` with the Cypress UI. 

##### Updates: 
> Note: To `run-as-ci` with the Cypress UI, update [x-pack/test/security_solution_cypress/runner.ts](https://github.com/elastic/kibana/blob/master/x-pack/test/security_solution_cypress/runner.ts#L25) from 
> ``` ts
>args: ['cypress:run'],
>```
>to 
>``` ts
>args: ['cypress:open'],
>```
>This is helpful for debugging specific failed tests from CI without having to run the entire suite.
  • Loading branch information
spong authored Jun 10, 2020
1 parent 3c6aabc commit 3b4fa6a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions x-pack/plugins/security_solution/cypress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,17 @@ Note that with this type of execution you don't need to have running a kibana an
As in this case we want to mimic a CI execution we want to execute the tests with the same set of data, this is why
in this case does not make sense to override Cypress environment variables.

Note: To `run-as-ci` with the Cypress UI, update [x-pack/test/security_solution_cypress/runner.ts](https://github.com/elastic/kibana/blob/master/x-pack/test/security_solution_cypress/runner.ts#L25) from
``` ts
args: ['cypress:run'],
```
to
``` ts
args: ['cypress:open'],
```
This is helpful for debugging specific failed tests from CI without having to run the entire suite.

Note: Please don't commit this change.
### Test data

As mentioned above, when running the tests as Jenkins the tests are populated with data ("archives") found in: `x-pack/test/security_solution_cypress/es_archives`.
Expand Down

0 comments on commit 3b4fa6a

Please sign in to comment.