Skip to content

Commit 4ef2bce

Browse files
authored
Merge pull request #8 from hikaya-io/readme
Readme
2 parents d2da744 + e930305 commit 4ef2bce

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

README.md

+41-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# cypress-tests-activity
2-
Automated testcases for the Activity webapp using cypress
1+
# Activty Cypress E2E Test
2+
3+
This repo contains [**Activity**](https://github.com/hikaya-io/activity) automated test cases written in [Cypress](https://www.cypress.io/).
4+
5+
## Setup
6+
7+
To setup the test env clone the repo and then install Cypress plus other node module using the below command.
8+
9+
```bash
10+
$ npm install
11+
```
12+
13+
## Running tests
14+
15+
The tests can be executed using the [Test Runner](https://www.cypress.io/features)
16+
To starte the Test Runner runn the following command
17+
18+
```bash
19+
$ npx cypress open
20+
```
21+
22+
This command open Cypress and you can run a specific test or all the test.
23+
To run the test headlessly run the follpwing command.
24+
25+
```bash
26+
$ npx cypress run
27+
```
28+
29+
**_NB_**: After the test complete a video recording of the test is generated in the `videos` directory
30+
31+
**Note**
32+
The envirom variables file `cypress.env.json` has not been commited. You can create the following variable store in this file
33+
34+
```
35+
{
36+
"un_qa_org": "", # username for a user with django admin access
37+
"pw_qa_org": "", # password for a user with django admin access
38+
"api_key_mailslurp": "", # [Mailslurp](https://www.mailslurp.com/) api key
39+
"mailslurp_inbox": "" # Mailslurp inbox id
40+
}
41+
```

cypress/integration/sanity/ATCATC-2_Add_Edit_Delete_Program.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="Cypress" />
22

3-
context("Registration", () => {
3+
context("Program creation, update and delition", () => {
44
let data;
55
let env;
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// <reference types="Cypress" />
2+
3+
ctx("Indicator creation, update and delition", () => {});

0 commit comments

Comments
 (0)