@serenity-js/web 3.7.2 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/screenplay/interactions/Navigate.d.ts +1 -0
- package/lib/screenplay/interactions/Navigate.d.ts.map +1 -1
- package/lib/screenplay/interactions/Navigate.js +1 -0
- package/lib/screenplay/interactions/Navigate.js.map +1 -1
- package/lib/screenplay/interactions/Switch.d.ts +2 -0
- package/lib/screenplay/interactions/Switch.d.ts.map +1 -1
- package/lib/screenplay/interactions/Switch.js +2 -0
- package/lib/screenplay/interactions/Switch.js.map +1 -1
- package/package.json +4 -4
- package/src/screenplay/interactions/Navigate.ts +1 -0
- package/src/screenplay/interactions/Switch.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.8.0](https://github.com/serenity-js/serenity-js/compare/v3.7.2...v3.8.0) (2023-08-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @serenity-js/web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.7.2](https://github.com/serenity-js/serenity-js/compare/v3.7.1...v3.7.2) (2023-07-26)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @serenity-js/web
|
|
@@ -121,6 +121,7 @@ export declare class Navigate {
|
|
|
121
121
|
* import { actorCalled } from '@serenity-js/core'
|
|
122
122
|
* import { Ensure, endsWith } from '@serenity-js/assertions'
|
|
123
123
|
* import { Navigate, Cookie } from '@serenity-js/web'
|
|
124
|
+
* import { browser } from '@wdio/globals'
|
|
124
125
|
*
|
|
125
126
|
* await actorCalled('Hannu')
|
|
126
127
|
* .whoCan(BrowseTheWebWithWebdriverIO.using(browser))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigate.d.ts","sourceRoot":"","sources":["../../../src/screenplay/interactions/Navigate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAmC,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAK,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AAIzE;;;;;;;;;;GAUG;AACH,qBAAa,QAAQ;IAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,WAAW;IAI/C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAI,IAAI,WAAW;IAQ1B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CAAC,OAAO,IAAI,WAAW;IAQ7B
|
|
1
|
+
{"version":3,"file":"Navigate.d.ts","sourceRoot":"","sources":["../../../src/screenplay/interactions/Navigate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAmC,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAK,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AAIzE;;;;;;;;;;GAUG;AACH,qBAAa,QAAQ;IAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,WAAW;IAI/C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAI,IAAI,WAAW;IAQ1B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CAAC,OAAO,IAAI,WAAW;IAQ7B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,UAAU,IAAI,WAAW;CAOnC"}
|
|
@@ -136,6 +136,7 @@ class Navigate {
|
|
|
136
136
|
* import { actorCalled } from '@serenity-js/core'
|
|
137
137
|
* import { Ensure, endsWith } from '@serenity-js/assertions'
|
|
138
138
|
* import { Navigate, Cookie } from '@serenity-js/web'
|
|
139
|
+
* import { browser } from '@wdio/globals'
|
|
139
140
|
*
|
|
140
141
|
* await actorCalled('Hannu')
|
|
141
142
|
* .whoCan(BrowseTheWebWithWebdriverIO.using(browser))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigate.js","sourceRoot":"","sources":["../../../src/screenplay/interactions/Navigate.ts"],"names":[],"mappings":";;;AACA,4CAAyE;AAEzE,4CAA4C;AAE5C;;;;;;;;;;GAUG;AACH,MAAa,QAAQ;IAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,MAAM,CAAC,EAAE,CAAC,GAAuB;QAC7B,OAAO,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAI;QACP,OAAO,kBAAW,CAAC,KAAK,CAAC,8CAA8C,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;YACnF,MAAM,IAAI,GAAG,MAAM,wBAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;YAExD,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CAAC,OAAO;QACV,OAAO,kBAAW,CAAC,KAAK,CAAC,iDAAiD,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;YACtF,MAAM,IAAI,GAAG,MAAM,wBAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;YAExD,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QACjC,CAAC,CAAC,CAAC;IACP,CAAC;IAED
|
|
1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AAC,CAAC;IACP,CAAC;CACJ;AAlJD,4BAkJC;AAED;;GAEG;AACH,MAAM,aAAc,SAAQ,kBAAW;IACnC,YAA6B,GAAuB;QAChD,KAAK,CAAC,IAAA,QAAC,EAAA,uBAAwB,GAAI,EAAE,CAAC,CAAC;QADd,QAAG,GAAH,GAAG,CAAoB;IAEpD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,KAAuC;QACnD,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzC,MAAM,IAAI,GAAG,MAAM,wBAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;QAExD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACtC,MAAM,IAAI,2BAAoB,CAAC,wBAAyB,GAAI,EAAE,EAAE,KAAK,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -54,6 +54,7 @@ import type { Switchable } from '../models';
|
|
|
54
54
|
* ```ts
|
|
55
55
|
* import { actorCalled } from '@serenity-js/core'
|
|
56
56
|
* import { Click, Enter, Switch } from '@serenity-js/web'
|
|
57
|
+
* import { browser } from '@wdio/globals'
|
|
57
58
|
*
|
|
58
59
|
* await actorCalled('Francesca')
|
|
59
60
|
* .whoCan(BrowseTheWebWithWebdriverIO.using(browser))
|
|
@@ -76,6 +77,7 @@ import type { Switchable } from '../models';
|
|
|
76
77
|
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
77
78
|
* import { actorCalled } from '@serenity-js/core'
|
|
78
79
|
* import { Key, PageElement, Press, Switch, Value } from '@serenity-js/web'
|
|
80
|
+
* import { browser } from '@wdio/globals'
|
|
79
81
|
*
|
|
80
82
|
* const inputField = () =>
|
|
81
83
|
* PageElement.located(By.css('input'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/screenplay/interactions/Switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAS,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/screenplay/interactions/Switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAS,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,qBAAa,MAAO,SAAQ,WAAW;IAab,OAAO,CAAC,QAAQ,CAAC,UAAU;IAXjD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,MAAM;IAIrD,SAAS,aAA8B,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAIzE;;;;;;;;OAQG;IACH,GAAG,CAAC,GAAG,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI;IAIpC;;OAEG;IACG,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;CAK1E"}
|
|
@@ -55,6 +55,7 @@ const core_1 = require("@serenity-js/core");
|
|
|
55
55
|
* ```ts
|
|
56
56
|
* import { actorCalled } from '@serenity-js/core'
|
|
57
57
|
* import { Click, Enter, Switch } from '@serenity-js/web'
|
|
58
|
+
* import { browser } from '@wdio/globals'
|
|
58
59
|
*
|
|
59
60
|
* await actorCalled('Francesca')
|
|
60
61
|
* .whoCan(BrowseTheWebWithWebdriverIO.using(browser))
|
|
@@ -77,6 +78,7 @@ const core_1 = require("@serenity-js/core");
|
|
|
77
78
|
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
78
79
|
* import { actorCalled } from '@serenity-js/core'
|
|
79
80
|
* import { Key, PageElement, Press, Switch, Value } from '@serenity-js/web'
|
|
81
|
+
* import { browser } from '@wdio/globals'
|
|
80
82
|
*
|
|
81
83
|
* const inputField = () =>
|
|
82
84
|
* PageElement.located(By.css('input'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/screenplay/interactions/Switch.ts"],"names":[],"mappings":";;;AACA,4CAAsD;AAItD
|
|
1
|
+
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/screenplay/interactions/Switch.ts"],"names":[],"mappings":";;;AACA,4CAAsD;AAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,MAAa,MAAO,SAAQ,kBAAW;IAEnC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,CAAC,UAAkC;QACxC,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,YAAuC,UAAkC;QACrE,KAAK,CAAC,sBAAuB,UAAW,EAAE,CAAC,CAAC;QADT,eAAU,GAAV,UAAU,CAAwB;IAEzE,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CAAC,GAAG,UAAsB;QACzB,OAAO,IAAI,0BAA0B,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,KAAuC;QACnD,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvD,MAAM,UAAU,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;CACJ;AAtCD,wBAsCC;AAED;;GAEG;AACH,MAAM,0BAA2B,SAAQ,WAAI;IACzC,YACqB,UAAkC,EAClC,UAAsB;QAEvC,KAAK,CAAC,sBAAuB,UAAW,EAAE,CAAC,CAAC;QAH3B,eAAU,GAAV,UAAU,CAAwB;QAClC,eAAU,GAAV,UAAU,CAAY;IAG3C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,KAAY;QAExB,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,QAAQ,EAAE,CAAC;QAE3C,MAAM,KAAK,CAAC,UAAU,CAClB,GAAG,IAAI,CAAC,UAAU,CACrB,CAAA;QAED,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;IAC9B,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/web",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Serenity/JS Screenplay Pattern APIs for the Web",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"node": "^16.13 || ^18.12 || ^20"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@serenity-js/assertions": "3.
|
|
48
|
-
"@serenity-js/core": "3.
|
|
47
|
+
"@serenity-js/assertions": "3.8.0",
|
|
48
|
+
"@serenity-js/core": "3.8.0",
|
|
49
49
|
"tiny-types": "^1.20.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"ts-node": "^10.9.1",
|
|
59
59
|
"typescript": "^5.1.6"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "5a054cb7304cf0133c3370768fe03db67c197e59"
|
|
62
62
|
}
|
|
@@ -142,6 +142,7 @@ export class Navigate {
|
|
|
142
142
|
* import { actorCalled } from '@serenity-js/core'
|
|
143
143
|
* import { Ensure, endsWith } from '@serenity-js/assertions'
|
|
144
144
|
* import { Navigate, Cookie } from '@serenity-js/web'
|
|
145
|
+
* import { browser } from '@wdio/globals'
|
|
145
146
|
*
|
|
146
147
|
* await actorCalled('Hannu')
|
|
147
148
|
* .whoCan(BrowseTheWebWithWebdriverIO.using(browser))
|
|
@@ -56,6 +56,7 @@ import type { Switchable } from '../models';
|
|
|
56
56
|
* ```ts
|
|
57
57
|
* import { actorCalled } from '@serenity-js/core'
|
|
58
58
|
* import { Click, Enter, Switch } from '@serenity-js/web'
|
|
59
|
+
* import { browser } from '@wdio/globals'
|
|
59
60
|
*
|
|
60
61
|
* await actorCalled('Francesca')
|
|
61
62
|
* .whoCan(BrowseTheWebWithWebdriverIO.using(browser))
|
|
@@ -78,6 +79,7 @@ import type { Switchable } from '../models';
|
|
|
78
79
|
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
79
80
|
* import { actorCalled } from '@serenity-js/core'
|
|
80
81
|
* import { Key, PageElement, Press, Switch, Value } from '@serenity-js/web'
|
|
82
|
+
* import { browser } from '@wdio/globals'
|
|
81
83
|
*
|
|
82
84
|
* const inputField = () =>
|
|
83
85
|
* PageElement.located(By.css('input'));
|