Skip to content

Commit 3c29882

Browse files
Update the README.md file
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent 35d7437 commit 3c29882

File tree

1 file changed

+82
-5
lines changed

1 file changed

+82
-5
lines changed

tests/functional/README.md

Lines changed: 82 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,77 @@
1-
# Installation
1+
# Cypress Framework
2+
3+
This repository contains a Cypress framework setup for automated testing. The framework is structured as follows:
4+
5+
## Project Folder Structure
6+
7+
Project Folder<br>
8+
├── node_modules <br>
9+
└── cypress<br>
10+
&nbsp; &nbsp; &nbsp; &nbsp;├── appConfig<br>
11+
&nbsp; &nbsp; &nbsp; &nbsp;├── downloads<br>
12+
&nbsp; &nbsp; &nbsp; &nbsp;├── e2e<br>
13+
&nbsp; &nbsp; &nbsp; &nbsp;├── fixtures<br>
14+
&nbsp; &nbsp; &nbsp; &nbsp;├── reports<br>
15+
&nbsp; &nbsp; &nbsp; &nbsp;├── screenshot<br>
16+
&nbsp; &nbsp; &nbsp; &nbsp;├── support<br>
17+
&nbsp; &nbsp; &nbsp; &nbsp;├── video<br>
18+
19+
├─ cypress.config.ts<br>
20+
│ .eslintrc.json<br>
21+
│ readme.md<br>
22+
│ .gitignore<br>
23+
│ package-lock.json<br>
24+
│ package.json<br>
25+
│ tsconfig.json<br>
26+
├─ .github<br>
27+
&nbsp; &nbsp; &nbsp; &nbsp;└── workflows<br>
28+
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; └── main.yml<br>
29+
30+
## Description
31+
32+
- `.gitignore`: Specifies intentionally untracked files to ignore in Git.
33+
- `package-lock.json` and `package.json`: Node.js package files specifying project dependencies.
34+
- `cypress.config.ts`: Configuration file for Playwright settings.
35+
- `tsconfig.json`: TypeScript compiler options file.
36+
37+
### `.GitHub`
38+
39+
- `.GitHub/workflows/main.yml`: GitLub Actions workflow file for continuous integration.
40+
41+
### `node_modules`
42+
43+
- Directory containing Node.js modules installed by npm.
44+
45+
### `Cypress-report`
46+
47+
- Directory for storing Cypress test reports.
48+
49+
### `src`
50+
51+
- Source code directory containing project files.
52+
53+
#### `api`
54+
55+
- Directory for API-related scripts.
56+
57+
#### `config`
58+
59+
- Directory containing environment configuration files and authentication data.
60+
61+
#### `fixtures`
62+
63+
- Directory for test fixtures, such as reusable functions for mock.
64+
65+
### `test-results`
66+
67+
- Directory for storing test execution results, including screenshots, trace files, and videos.
68+
69+
## Usage
270

371
Make sure that you have `node` and `npm` installed.
472

73+
Clone the repository and install dependencies using `npm install`.
74+
575
Create `.env` file under `tests/functional` (it is git-ignored), with contents like this:
676

777
```
@@ -17,9 +87,16 @@ CYPRESS_ENV=dev
1787

1888
You can ask for example `.env` file over slack.
1989

20-
Then to run tests:
90+
- Run `npx cypress install`
91+
- Run tests using cmd `npx cypress run`.
92+
- Run tests using UI `npx cypress open`. Choose **E2E testing**, select **Chrome** browser.
93+
- View test reports in the `cypress-report` directory.
94+
- Explore source code files for detailed implementation.
95+
96+
## Contributing
97+
98+
Contributions are welcome! Please follow the established coding style and guidelines. If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
2199

22-
- Run `npm install`.
23-
- Run all tests via: `npx cypress run`.
24-
- Run specific tests from Chrome browser: `npx cypress open`. Choose **E2E testing**, select **Chrome** browser.
100+
## License
25101

102+
This project is licensed under the [](LICENSE).

0 commit comments

Comments
 (0)