Skip to content

Commit e2f6ae8

Browse files
updated exports of mock and poDefine (#46)
1 parent 2961d1f commit e2f6ae8

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to the "@qavajs/steps-playwright" will be documented in this
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [0.0.22]
8+
- :beetle: fixed exports of mock and poDefine
9+
710
## [0.0.21]
811
- :rocket: added I drag and drop... step
912

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ require('./lib/execute.js');
88
require('./lib/intercept.js');
99
require('./lib/cookies.js');
1010
require('./lib/localSessionStorage.js');
11+
require('./lib/mock.js');
12+
require('./lib/poDefine.js');

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qavajs/steps-playwright",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"description": "steps to interact with playwright",
55
"main": "./index.js",
66
"scripts": {
@@ -26,7 +26,7 @@
2626
"@cucumber/cucumber": "^9.1.2",
2727
"@qavajs/cli": "^0.0.22",
2828
"@qavajs/console-formatter": "^0.2.1",
29-
"@qavajs/memory": "^1.3.0",
29+
"@qavajs/memory": "^1.4.0",
3030
"@qavajs/po-playwright": "^0.0.9",
3131
"@qavajs/webstorm-adapter": "^8.0.0",
3232
"@qavajs/xunit-formatter": "^0.0.4",

src/mock.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function respondWith(mockKey: string, statusCode: string, body: string): P
3333
* @param {string} statusCode - status code
3434
* @param {string} body - response body
3535
* @example
36-
* When I create mock for '/yourservice/**' with filter options as 'myServiceMock'
36+
* When I create mock for '/yourservice/**' as 'myServiceMock'
3737
* And I set '$myServiceMock' mock to respond '200' with:
3838
* """
3939
* {
@@ -49,7 +49,7 @@ When('I set {string} mock to respond {string} with:', respondWith);
4949
* @param {string} statusCode - status code
5050
* @param {string} body - response body
5151
* @example
52-
* When I create mock for '/yourservice/**' with filter options as 'myServiceMock'
52+
* When I create mock for '/yourservice/**' as 'myServiceMock'
5353
* And I set '$myServiceMock' mock to respond '200' with '$response'
5454
*/
5555
When('I set {string} mock to respond {string} with {string}', respondWith);
@@ -59,7 +59,7 @@ When('I set {string} mock to respond {string} with {string}', respondWith);
5959
* @param {string} mockKey - memory key to get mock instance
6060
* @param {string} reason - reason string see https://playwright.dev/docs/api/class-route#route-abort
6161
* @example
62-
* When I create mock for '/yourservice/**' with filter options as 'myServiceMock'
62+
* When I create mock for '/yourservice/**' as 'myServiceMock'
6363
* And I set '$myServiceMock' mock to abort with 'Failed' reason
6464
*/
6565
When('I set {string} mock to abort with {string} reason', async function (mockKey: string, reason: string) {

0 commit comments

Comments
 (0)