Skip to content

Commit 16e5bb4

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Use this plugin to query postgres database and use response in cypress tests
99
```bash
1010
npm i -D cypress-postgres
1111

12+
```
1213
then open your `cypress/plugins/index.js` file and register a new task
13-
14-
```javascript
14+
```
1515
module.exports = on => {
1616
on("task", {
1717
dbQuery: require("cypress-postgres")
@@ -31,7 +31,8 @@ To query postgres database follow below steps-
3131
"port":5432
3232
}
3333

34-
```javascript
34+
* Use dbQuery task in your tests to query postgres database like below-
35+
```
3536
cy.task("dbQuery", "your sql query").then(queryResponse => {
3637
expect(queryResponse).to.equal("[{Your expected query result}]")
3738
});

0 commit comments

Comments
 (0)