Skip to content

Commit b766128

Browse files
author
Siddharth Kala
committed
Updated readme
1 parent 16e5bb4 commit b766128

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Test sql query to your postgres database in cypres tests
55
Use this plugin to query postgres database and use response in cypress tests
66

77
# Installation
8-
8+
* Run below command in terminal to install the cypress postgres
99
```bash
1010
npm i -D cypress-postgres
1111

1212
```
13-
then open your `cypress/plugins/index.js` file and register a new task
13+
* Open your `cypress/plugins/index.js` file and register a new task
1414
```
1515
module.exports = on => {
1616
on("task", {
@@ -22,14 +22,16 @@ module.exports = on => {
2222
# How to use it
2323

2424
To query postgres database follow below steps-
25-
26-
* Add postgres database connection details in cypress.json file. Details are like-
27-
"db":{"user": "postgres",
25+
* Add postgres database connection details in cypress.json file. Details like-
26+
```
27+
"db":
28+
{"user": "postgres",
2829
"host": "localhost",
2930
"database": "postgres",
3031
"password": "*****",
3132
"port":5432
3233
}
34+
```
3335

3436
* Use dbQuery task in your tests to query postgres database like below-
3537
```

0 commit comments

Comments
 (0)