@serenity-js/playwright-test 3.4.2 → 3.6.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 +28 -0
- package/README.md +68 -3
- package/lib/api/DescribeFunction.d.ts +235 -0
- package/lib/api/DescribeFunction.d.ts.map +1 -0
- package/lib/api/DescribeFunction.js +3 -0
- package/lib/api/DescribeFunction.js.map +1 -0
- package/lib/api/PerformActivitiesAsPlaywrightSteps.d.ts +3 -2
- package/lib/api/PerformActivitiesAsPlaywrightSteps.d.ts.map +1 -1
- package/lib/api/PerformActivitiesAsPlaywrightSteps.js.map +1 -1
- package/lib/api/PlaywrightTestConfig.d.ts +1 -1
- package/lib/api/PlaywrightTestConfig.d.ts.map +1 -1
- package/lib/api/SerenityFixtures.d.ts +1 -1
- package/lib/api/SerenityFixtures.d.ts.map +1 -1
- package/lib/api/SerenityOptions.d.ts +4 -4
- package/lib/api/SerenityOptions.d.ts.map +1 -1
- package/lib/api/SuiteFunction.d.ts +51 -0
- package/lib/api/SuiteFunction.d.ts.map +1 -0
- package/lib/api/SuiteFunction.js +3 -0
- package/lib/api/SuiteFunction.js.map +1 -0
- package/lib/api/index.d.ts +2 -1
- package/lib/api/index.d.ts.map +1 -1
- package/lib/api/index.js +2 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/test-api.d.ts +245 -70
- package/lib/api/test-api.d.ts.map +1 -1
- package/lib/api/test-api.js +268 -105
- package/lib/api/test-api.js.map +1 -1
- package/lib/reporter/DomainEventBuffer.d.ts +2 -2
- package/lib/reporter/DomainEventBuffer.d.ts.map +1 -1
- package/lib/reporter/PlaywrightStepReporter.d.ts +3 -3
- package/lib/reporter/PlaywrightStepReporter.d.ts.map +1 -1
- package/lib/reporter/PlaywrightStepReporter.js.map +1 -1
- package/lib/reporter/SerenityReporterForPlaywrightTest.d.ts +2 -2
- package/lib/reporter/SerenityReporterForPlaywrightTest.d.ts.map +1 -1
- package/lib/reporter/SerenityReporterForPlaywrightTest.js.map +1 -1
- package/package.json +7 -7
- package/src/api/DescribeFunction.ts +233 -0
- package/src/api/PerformActivitiesAsPlaywrightSteps.ts +3 -2
- package/src/api/PlaywrightTestConfig.ts +1 -1
- package/src/api/SerenityFixtures.ts +1 -1
- package/src/api/SerenityOptions.ts +4 -4
- package/src/api/SuiteFunction.ts +52 -0
- package/src/api/index.ts +2 -1
- package/src/api/test-api.ts +343 -126
- package/src/reporter/DomainEventBuffer.ts +2 -2
- package/src/reporter/PlaywrightStepReporter.ts +4 -4
- package/src/reporter/SerenityReporterForPlaywrightTest.ts +11 -7
- package/lib/api/SerenityTestType.d.ts +0 -5
- package/lib/api/SerenityTestType.d.ts.map +0 -1
- package/lib/api/SerenityTestType.js +0 -4
- package/lib/api/SerenityTestType.js.map +0 -1
- package/src/api/SerenityTestType.ts +0 -12
package/lib/api/test-api.js
CHANGED
|
@@ -22,8 +22,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var _a;
|
|
25
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.expect = exports.afterAll = exports.afterEach = exports.beforeEach = exports.beforeAll = exports.describe = exports.test = exports.it = void 0;
|
|
27
|
+
exports.useBase = exports.useFixtures = exports.expect = exports.afterAll = exports.afterEach = exports.beforeEach = exports.beforeAll = exports.describe = exports.test = exports.it = exports.fixtures = void 0;
|
|
27
28
|
const test_1 = require("@playwright/test");
|
|
28
29
|
const core_1 = require("@serenity-js/core");
|
|
29
30
|
const events_1 = require("@serenity-js/core/lib/events");
|
|
@@ -34,67 +35,11 @@ const os = __importStar(require("os"));
|
|
|
34
35
|
const tiny_types_1 = require("tiny-types");
|
|
35
36
|
const reporter_1 = require("../reporter");
|
|
36
37
|
const PerformActivitiesAsPlaywrightSteps_1 = require("./PerformActivitiesAsPlaywrightSteps");
|
|
37
|
-
|
|
38
|
-
* Declares a single test scenario.
|
|
39
|
-
*
|
|
40
|
-
* ## Example
|
|
41
|
-
*
|
|
42
|
-
* ```typescript
|
|
43
|
-
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
44
|
-
* import { describe, it } from '@serenity-js/playwright-test'
|
|
45
|
-
*
|
|
46
|
-
* describe(`Todo List App`, () => {
|
|
47
|
-
*
|
|
48
|
-
* it(`should allow me to add a todo item`, async ({ actor }) => {
|
|
49
|
-
* await actor.attemptsTo(
|
|
50
|
-
* startWithAnEmptyList(),
|
|
51
|
-
*
|
|
52
|
-
* recordItem('Buy some milk'),
|
|
53
|
-
*
|
|
54
|
-
* Ensure.that(itemNames(), equals([
|
|
55
|
-
* 'Buy some milk',
|
|
56
|
-
* ])),
|
|
57
|
-
* )
|
|
58
|
-
* })
|
|
59
|
-
*
|
|
60
|
-
* it('supports multiple actors using separate browsers', async ({ actorCalled }) => {
|
|
61
|
-
* await actorCalled('Alice').attemptsTo(
|
|
62
|
-
* startWithAListContaining(
|
|
63
|
-
* 'Feed the cat'
|
|
64
|
-
* ),
|
|
65
|
-
* )
|
|
66
|
-
*
|
|
67
|
-
* await actorCalled('Bob').attemptsTo(
|
|
68
|
-
* startWithAListContaining(
|
|
69
|
-
* 'Walk the dog'
|
|
70
|
-
* ),
|
|
71
|
-
* )
|
|
72
|
-
*
|
|
73
|
-
* await actorCalled('Alice').attemptsTo(
|
|
74
|
-
* Ensure.that(itemNames(), equals([
|
|
75
|
-
* 'Feed the cat'
|
|
76
|
-
* ])),
|
|
77
|
-
* )
|
|
78
|
-
*
|
|
79
|
-
* await actorCalled('Bob').attemptsTo(
|
|
80
|
-
* Ensure.that(itemNames(), equals([
|
|
81
|
-
* 'Walk the dog'
|
|
82
|
-
* ])),
|
|
83
|
-
* )
|
|
84
|
-
* })
|
|
85
|
-
* })
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* ## Learn more
|
|
89
|
-
* - {@apilink describe|Grouping test scenarios}
|
|
90
|
-
* - {@apilink SerenityFixtures}
|
|
91
|
-
* - [Playwright Test `test` function](https://playwright.dev/docs/api/class-test#test-call)
|
|
92
|
-
* - [Serenity/JS + Playwright Test project template](https://github.com/serenity-js/serenity-js-playwright-test-template/)
|
|
93
|
-
*/
|
|
94
|
-
exports.it = test_1.test.extend({
|
|
38
|
+
exports.fixtures = {
|
|
95
39
|
actors: [
|
|
96
|
-
|
|
97
|
-
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
41
|
+
async ({ contextOptions, page, serenity }, use) => {
|
|
42
|
+
await use(core_1.Cast.where(actor => actor.whoCan(playwright_1.BrowseTheWebWithPlaywright.usingPage(page, contextOptions), core_1.TakeNotes.usingAnEmptyNotepad())));
|
|
98
43
|
},
|
|
99
44
|
{ option: true },
|
|
100
45
|
],
|
|
@@ -149,7 +94,7 @@ exports.it = test_1.test.extend({
|
|
|
149
94
|
exports.test.info().annotations.push({ type: event.tag.type, description: event.tag.name });
|
|
150
95
|
}
|
|
151
96
|
}
|
|
152
|
-
|
|
97
|
+
info.attach('serenity-js-events.json', {
|
|
153
98
|
contentType: reporter_1.SERENITY_JS_DOMAIN_EVENTS_ATTACHMENT_CONTENT_TYPE,
|
|
154
99
|
body: Buffer.from(JSON.stringify(serialisedEvents), 'utf8'),
|
|
155
100
|
});
|
|
@@ -169,21 +114,85 @@ exports.it = test_1.test.extend({
|
|
|
169
114
|
actor: async ({ actorCalled, defaultActorName }, use) => {
|
|
170
115
|
await use(actorCalled(defaultActorName));
|
|
171
116
|
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
117
|
+
};
|
|
118
|
+
function createTestApi(baseTest) {
|
|
119
|
+
return {
|
|
120
|
+
useFixtures(customFixtures) {
|
|
121
|
+
return createTestApi(baseTest.extend(customFixtures));
|
|
122
|
+
},
|
|
123
|
+
beforeAll: baseTest.beforeAll,
|
|
124
|
+
beforeEach: baseTest.beforeEach,
|
|
125
|
+
afterEach: baseTest.afterEach,
|
|
126
|
+
afterAll: baseTest.afterAll,
|
|
127
|
+
describe: baseTest.describe,
|
|
128
|
+
expect: baseTest.expect,
|
|
129
|
+
it: baseTest,
|
|
130
|
+
test: baseTest,
|
|
131
|
+
};
|
|
185
132
|
}
|
|
186
|
-
|
|
133
|
+
_a = createTestApi(test_1.test).useFixtures(exports.fixtures),
|
|
134
|
+
/**
|
|
135
|
+
* Declares a single test scenario.
|
|
136
|
+
*
|
|
137
|
+
* ## Example
|
|
138
|
+
*
|
|
139
|
+
* ```typescript
|
|
140
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
141
|
+
* import { describe, it } from '@serenity-js/playwright-test'
|
|
142
|
+
*
|
|
143
|
+
* describe(`Todo List App`, () => {
|
|
144
|
+
*
|
|
145
|
+
* it(`should allow me to add a todo item`, async ({ actor }) => {
|
|
146
|
+
* await actor.attemptsTo(
|
|
147
|
+
* startWithAnEmptyList(),
|
|
148
|
+
*
|
|
149
|
+
* recordItem('Buy some milk'),
|
|
150
|
+
*
|
|
151
|
+
* Ensure.that(itemNames(), equals([
|
|
152
|
+
* 'Buy some milk',
|
|
153
|
+
* ])),
|
|
154
|
+
* )
|
|
155
|
+
* })
|
|
156
|
+
*
|
|
157
|
+
* it('supports multiple actors using separate browsers', async ({ actorCalled }) => {
|
|
158
|
+
* await actorCalled('Alice').attemptsTo(
|
|
159
|
+
* startWithAListContaining(
|
|
160
|
+
* 'Feed the cat'
|
|
161
|
+
* ),
|
|
162
|
+
* )
|
|
163
|
+
*
|
|
164
|
+
* await actorCalled('Bob').attemptsTo(
|
|
165
|
+
* startWithAListContaining(
|
|
166
|
+
* 'Walk the dog'
|
|
167
|
+
* ),
|
|
168
|
+
* )
|
|
169
|
+
*
|
|
170
|
+
* await actorCalled('Alice').attemptsTo(
|
|
171
|
+
* Ensure.that(itemNames(), equals([
|
|
172
|
+
* 'Feed the cat'
|
|
173
|
+
* ])),
|
|
174
|
+
* )
|
|
175
|
+
*
|
|
176
|
+
* await actorCalled('Bob').attemptsTo(
|
|
177
|
+
* Ensure.that(itemNames(), equals([
|
|
178
|
+
* 'Walk the dog'
|
|
179
|
+
* ])),
|
|
180
|
+
* )
|
|
181
|
+
* })
|
|
182
|
+
* })
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
185
|
+
* ## Learn more
|
|
186
|
+
* - [Grouping test scenarios](/api/playwright-test/function/describe/)
|
|
187
|
+
* - {@apilink SerenityFixtures}
|
|
188
|
+
* - [Playwright Test `test` function](https://playwright.dev/docs/api/class-test#test-call)
|
|
189
|
+
* - [Serenity/JS + Playwright Test project template](https://github.com/serenity-js/serenity-js-playwright-test-template/)
|
|
190
|
+
*/
|
|
191
|
+
exports.it = _a.it,
|
|
192
|
+
/**
|
|
193
|
+
* Declares a single test scenario. Alias for [`it`](/api/playwright-test/function/it/).
|
|
194
|
+
*/
|
|
195
|
+
exports.test = _a.test,
|
|
187
196
|
/**
|
|
188
197
|
* Declares a group of test scenarios.
|
|
189
198
|
*
|
|
@@ -196,46 +205,200 @@ exports.test = exports.it;
|
|
|
196
205
|
*
|
|
197
206
|
* describe(`Todo List App`, () => {
|
|
198
207
|
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
208
|
+
* test.use({
|
|
209
|
+
* defaultActorName: 'Serena',
|
|
210
|
+
* crew: [
|
|
211
|
+
* Photographer.whoWill(TakePhotosOfFailures),
|
|
212
|
+
* ],
|
|
213
|
+
* })
|
|
205
214
|
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
215
|
+
* it(`should allow me to add a todo item`, async ({ actor }) => {
|
|
216
|
+
* await actor.attemptsTo(
|
|
217
|
+
* startWithAnEmptyList(),
|
|
209
218
|
*
|
|
210
|
-
*
|
|
219
|
+
* recordItem('Buy some milk'),
|
|
211
220
|
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
221
|
+
* Ensure.that(itemNames(), equals([
|
|
222
|
+
* 'Buy some milk',
|
|
223
|
+
* ])),
|
|
224
|
+
* )
|
|
225
|
+
* })
|
|
217
226
|
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
227
|
+
* it('should clear text input field when an item is added', async ({ actor }) => {
|
|
228
|
+
* await actor.attemptsTo(
|
|
229
|
+
* startWithAnEmptyList(),
|
|
221
230
|
*
|
|
222
|
-
*
|
|
231
|
+
* recordItem('Buy some milk'),
|
|
223
232
|
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
233
|
+
* Ensure.that(Value.of(newTodoInput()), equals('')),
|
|
234
|
+
* )
|
|
235
|
+
* })
|
|
227
236
|
* })
|
|
228
237
|
* ```
|
|
229
238
|
*
|
|
230
239
|
* ## Learn more
|
|
231
|
-
* - Declaring a Serenity/JS
|
|
240
|
+
* - Declaring a Serenity/JS [test scenario](/api/playwright-test/function/it/)
|
|
232
241
|
* - [Playwright Test `describe` function](https://playwright.dev/docs/api/class-test#test-describe-1)
|
|
233
242
|
* - [Serenity/JS + Playwright Test project template](https://github.com/serenity-js/serenity-js-playwright-test-template/)
|
|
234
243
|
*/
|
|
235
|
-
exports.describe = exports.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
244
|
+
exports.describe = _a.describe, exports.beforeAll = _a.beforeAll, exports.beforeEach = _a.beforeEach, exports.afterEach = _a.afterEach, exports.afterAll = _a.afterAll, exports.expect = _a.expect, exports.useFixtures = _a.useFixtures;
|
|
245
|
+
/**
|
|
246
|
+
* Creates a Serenity/JS BDD-style test API around the given Playwright [base test](https://playwright.dev/docs/test-fixtures).
|
|
247
|
+
*
|
|
248
|
+
* ## Using default configuration
|
|
249
|
+
*
|
|
250
|
+
* When your test scenario doesn't require [custom test fixtures](https://playwright.dev/docs/test-fixtures),
|
|
251
|
+
* and you're happy with the default [base test](https://playwright.dev/docs/api/class-test#test-call) offered by Playwright,
|
|
252
|
+
* you can import test API functions such as [`describe`](/api/playwright-test/function/describe/) and [`it`](/api/playwright-test/function/describe/) directly from `@serenity-js/playwright-test`.
|
|
253
|
+
*
|
|
254
|
+
* ```typescript
|
|
255
|
+
* import { describe, it, test } from '@serenity-js/playwright-test'
|
|
256
|
+
* import { Log } from '@serenity-js/core'
|
|
257
|
+
*
|
|
258
|
+
* // override default fixtures if needed
|
|
259
|
+
* test.use({
|
|
260
|
+
* defaultActorName: 'Alice'
|
|
261
|
+
* })
|
|
262
|
+
*
|
|
263
|
+
* describe('Serenity/JS default test API', () => {
|
|
264
|
+
*
|
|
265
|
+
* it('enables easy access to actors and standard Playwright fixtures', async ({ actor, browserName }) => {
|
|
266
|
+
* await actor.attemptsTo(
|
|
267
|
+
* Log.the(browserName),
|
|
268
|
+
* )
|
|
269
|
+
* })
|
|
270
|
+
* })
|
|
271
|
+
* ```
|
|
272
|
+
*
|
|
273
|
+
* In the above example, importing test API functions directly from `@serenity-js/playwright-test` is the equivalent of the following setup:
|
|
274
|
+
*
|
|
275
|
+
* ```typescript
|
|
276
|
+
* import { test as playwrightBaseTest } from '@playwright/test'
|
|
277
|
+
* import { useBase } from '@serenity-js/playwright-test'
|
|
278
|
+
*
|
|
279
|
+
* const { describe, it, test, beforeEach, afterEach } = useBase(playwrightBaseTest)
|
|
280
|
+
* ```
|
|
281
|
+
*
|
|
282
|
+
* ## Using custom fixtures
|
|
283
|
+
*
|
|
284
|
+
* When your test scenario requires [custom test fixtures](https://playwright.dev/docs/test-fixtures),
|
|
285
|
+
* but you're still happy with the default [base test](https://playwright.dev/docs/api/class-test#test-call) offered by Playwright,
|
|
286
|
+
* you can create fixture-aware test API functions such as [`describe`](/api/playwright-test/function/describe/) and [`it`](/api/playwright-test/function/describe/)
|
|
287
|
+
* by calling [`useFixtures`](/api/playwright-test/function/useFixtures/).
|
|
288
|
+
*
|
|
289
|
+
* For example, you can create a test scenario using a static `message` fixture as follows:
|
|
290
|
+
*
|
|
291
|
+
* ```typescript
|
|
292
|
+
* import { useFixtures } from '@serenity-js/playwright-test'
|
|
293
|
+
* import { Log } from '@serenity-js/core'
|
|
294
|
+
*
|
|
295
|
+
* const { describe, it } = useFixtures<{ message: string }>({
|
|
296
|
+
* message: 'Hello world!'
|
|
297
|
+
* })
|
|
298
|
+
*
|
|
299
|
+
* describe('Serenity/JS useFixtures', () => {
|
|
300
|
+
*
|
|
301
|
+
* it('enables injecting custom test fixtures into test scenarios', async ({ actor, message }) => {
|
|
302
|
+
* await actor.attemptsTo(
|
|
303
|
+
* Log.the(message),
|
|
304
|
+
* )
|
|
305
|
+
* })
|
|
306
|
+
* })
|
|
307
|
+
* ```
|
|
308
|
+
*
|
|
309
|
+
* The value of your test fixtures can be either static or dynamic and based on the value of other fixtures.
|
|
310
|
+
*
|
|
311
|
+
* To create a dynamic test fixture use the [function syntax](https://playwright.dev/docs/test-fixtures):
|
|
312
|
+
*
|
|
313
|
+
* ```typescript
|
|
314
|
+
* import { Log } from '@serenity-js/core'
|
|
315
|
+
* import { useFixtures } from '@serenity-js/playwright-test'
|
|
316
|
+
*
|
|
317
|
+
* const { describe, it } = useFixtures<{ message: string }>({
|
|
318
|
+
* message: async ({ actor }, use) => {
|
|
319
|
+
* await use(`Hello, ${ actor.name }`);
|
|
320
|
+
* }
|
|
321
|
+
* })
|
|
322
|
+
*
|
|
323
|
+
* describe('Serenity/JS useFixtures', () => {
|
|
324
|
+
*
|
|
325
|
+
* it('enables injecting custom test fixtures into test scenarios', async ({ actor, message }) => {
|
|
326
|
+
* await actor.attemptsTo(
|
|
327
|
+
* Log.the(message),
|
|
328
|
+
* )
|
|
329
|
+
* })
|
|
330
|
+
* })
|
|
331
|
+
* ```
|
|
332
|
+
*
|
|
333
|
+
* In the above example, creating test API functions via `useFixtures` is the equivalent of the following setup:
|
|
334
|
+
*
|
|
335
|
+
* ```typescript
|
|
336
|
+
* import { test as playwrightBaseTest } from '@playwright/test'
|
|
337
|
+
* import { useBase } from '@serenity-js/playwright-test'
|
|
338
|
+
*
|
|
339
|
+
* const { describe, it, test, beforeEach, afterEach } = useBase(playwrightBaseTest)
|
|
340
|
+
* .useFixtures<{ message: string }>({
|
|
341
|
+
* message: async ({ actor }, use) => {
|
|
342
|
+
* await use(`Hello, ${ actor.name }`);
|
|
343
|
+
* }
|
|
344
|
+
* })
|
|
345
|
+
* ```
|
|
346
|
+
*
|
|
347
|
+
* ## Using custom base test
|
|
348
|
+
*
|
|
349
|
+
* In cases where you need to use a non-default base test, for example when doing [UI component testing](https://playwright.dev/docs/test-components),
|
|
350
|
+
* you can create Serenity/JS test API functions around your preferred base test.
|
|
351
|
+
*
|
|
352
|
+
* ```tsx
|
|
353
|
+
* import { test as componentTest } from '@playwright/experimental-ct-react'
|
|
354
|
+
* import { Ensure, contain } from '@serenity-js/assertions'
|
|
355
|
+
* import { useBase } from '@serenity-js/playwright-test'
|
|
356
|
+
* import { Enter, PageElement, CssClasses } from '@serenity-js/web'
|
|
357
|
+
*
|
|
358
|
+
* import EmailInput from './EmailInput';
|
|
359
|
+
*
|
|
360
|
+
* const { it, describe } = useBase(componentTest).useFixtures<{ emailAddress: string }>({
|
|
361
|
+
* emailAddress: ({ actor }, use) => {
|
|
362
|
+
* use(`${ actor.name }@example.org`)
|
|
363
|
+
* }
|
|
364
|
+
* })
|
|
365
|
+
*
|
|
366
|
+
* describe('EmailInput', () => {
|
|
367
|
+
*
|
|
368
|
+
* it('allows valid email addresses', async ({ actor, mount, emailAddress }) => {
|
|
369
|
+
* const nativeComponent = await mount(<EmailInput/>);
|
|
370
|
+
*
|
|
371
|
+
* const component = PageElement.from(nativeComponent);
|
|
372
|
+
*
|
|
373
|
+
* await actor.attemptsTo(
|
|
374
|
+
* Enter.theValue(emailAddress).into(component),
|
|
375
|
+
* Ensure.that(CssClasses.of(component), contain('valid')),
|
|
376
|
+
* )
|
|
377
|
+
* })
|
|
378
|
+
* })
|
|
379
|
+
* ```
|
|
380
|
+
*
|
|
381
|
+
* @param baseTest
|
|
382
|
+
*/
|
|
383
|
+
function useBase(baseTest) {
|
|
384
|
+
return createTestApi(baseTest)
|
|
385
|
+
.useFixtures(exports.fixtures);
|
|
386
|
+
}
|
|
387
|
+
exports.useBase = useBase;
|
|
388
|
+
/**
|
|
389
|
+
* @private
|
|
390
|
+
* @param maybeDuration
|
|
391
|
+
*/
|
|
392
|
+
function asDuration(maybeDuration) {
|
|
393
|
+
return maybeDuration instanceof core_1.Duration
|
|
394
|
+
? maybeDuration
|
|
395
|
+
: core_1.Duration.ofMilliseconds(maybeDuration);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* @private
|
|
399
|
+
* @param maybeCast
|
|
400
|
+
*/
|
|
401
|
+
function asCast(maybeCast) {
|
|
402
|
+
return (0, tiny_types_1.ensure)('actors', maybeCast, (0, tiny_types_1.property)('prepare', (0, tiny_types_1.isFunction)()));
|
|
403
|
+
}
|
|
241
404
|
//# sourceMappingURL=test-api.js.map
|
package/lib/api/test-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-api.js","sourceRoot":"","sources":["../../src/api/test-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-api.js","sourceRoot":"","sources":["../../src/api/test-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,2CAA+D;AAC/D,4CAA+G;AAC/G,yDAA0E;AAC1E,uDAAsE;AACtE,wDAAqE;AACrE,0CAAsE;AACtE,uCAAyB;AAEzB,2CAA0D;AAE1D,0CAIqB;AAErB,6FAA0F;AAI7E,QAAA,QAAQ,GAAqK;IACtL,MAAM,EAAE;QACJ,6EAA6E;QAC7E,KAAK,EAAE,EAAE,cAAc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AC,QAAQ,EAAE,SAAiB,EAAE,IAAA,qBAAQ,EAAC,SAAS,EAAE,IAAA,uBAAU,GAAE,CAAC,CAAC,CAAC;AAClF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Stage, StageCrewMember } from '@serenity-js/core';
|
|
2
|
-
import { DomainEvent } from '@serenity-js/core/lib/events';
|
|
1
|
+
import type { Stage, StageCrewMember } from '@serenity-js/core';
|
|
2
|
+
import type { DomainEvent } from '@serenity-js/core/lib/events';
|
|
3
3
|
export declare class DomainEventBuffer implements StageCrewMember {
|
|
4
4
|
private stage?;
|
|
5
5
|
private events;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainEventBuffer.d.ts","sourceRoot":"","sources":["../../src/reporter/DomainEventBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"DomainEventBuffer.d.ts","sourceRoot":"","sources":["../../src/reporter/DomainEventBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,qBAAa,iBAAkB,YAAW,eAAe;IAIzC,OAAO,CAAC,KAAK,CAAC;IAF1B,OAAO,CAAC,MAAM,CAAqB;gBAEf,KAAK,CAAC,EAAE,KAAK;IAGjC,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,eAAe;IAMzC,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAIlC,KAAK,IAAI,WAAW,EAAE;CAOzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TestInfo } from '@playwright/test';
|
|
2
|
-
import { Stage, StageCrewMember } from '@serenity-js/core';
|
|
3
|
-
import { DomainEvent } from '@serenity-js/core/lib/events';
|
|
1
|
+
import type { TestInfo } from '@playwright/test';
|
|
2
|
+
import type { Stage, StageCrewMember } from '@serenity-js/core';
|
|
3
|
+
import type { DomainEvent } from '@serenity-js/core/lib/events';
|
|
4
4
|
export declare class PlaywrightStepReporter implements StageCrewMember {
|
|
5
5
|
private readonly testInfo;
|
|
6
6
|
private stage?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaywrightStepReporter.d.ts","sourceRoot":"","sources":["../../src/reporter/PlaywrightStepReporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"PlaywrightStepReporter.d.ts","sourceRoot":"","sources":["../../src/reporter/PlaywrightStepReporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAUhE,qBAAa,sBAAuB,YAAW,eAAe;IAGtD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,KAAK,CAAC;gBADG,QAAQ,EAAE,QAAQ,EAC3B,KAAK,CAAC,EAAE,KAAK;IAIzB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,eAAe;IAMzC,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAWlC,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,MAAM;CAGjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaywrightStepReporter.js","sourceRoot":"","sources":["../../src/reporter/PlaywrightStepReporter.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PlaywrightStepReporter.js","sourceRoot":"","sources":["../../src/reporter/PlaywrightStepReporter.ts"],"names":[],"mappings":";;;A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gCAAuB,CAC3C,EAAE,EACF,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAC3B,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACX,CAAC;IAEO,YAAY,CAAC,GAAQ;QACzB,8EAA8E;QAC9E,OAAO,CAAE,CAAC,GAAG,YAAY,mBAAW,IAAI,GAAG,YAAY,kBAAU,CAAC,CAAA;IACtE,CAAC;IAEO,MAAM,CAAC,GAAQ;QACnB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;CACJ;AApDD,wDAoDC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FullConfig } from '@playwright/test';
|
|
2
2
|
import type { Reporter, Suite, TestCase, TestResult } from '@playwright/test/reporter';
|
|
3
|
-
import { ClassDescription, Serenity, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
|
|
4
|
-
import { OutputStream } from '@serenity-js/core/lib/adapter';
|
|
3
|
+
import type { ClassDescription, Serenity, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
|
|
4
|
+
import type { OutputStream } from '@serenity-js/core/lib/adapter';
|
|
5
5
|
/**
|
|
6
6
|
* Configuration object accepted by `@serenity-js/playwright-test` reporter.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SerenityReporterForPlaywrightTest.d.ts","sourceRoot":"","sources":["../../src/reporter/SerenityReporterForPlaywrightTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAa,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAClG,OAAO,
|
|
1
|
+
{"version":3,"file":"SerenityReporterForPlaywrightTest.d.ts","sour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;CAG3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SerenityReporterForPlaywrightTest.js","sourceRoot":"","sources":["../../src/reporter/SerenityReporterForPlaywrightTest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SerenityReporterForPlaywrightTest.js","sourceRoot":"","sources":["../../src/reporter/SerenityReporterForPlaywrightTest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AASA,4CAG2B;AAI3B,qEAAuD;AACvD,yDAUsC;AACtC,iDAAoE;AAIpE,uDAYqC;AAErC,mEAA4F;AA+B5F;;;;GAIG;AACH,MAAa,iCAAiC;IAK1C;;;;;OAKG;IACH,YACI,MAA+C,EAC9B,WAAqB,eAAwB;QAA7C,aAAQ,GAAR,QAAQ,CAAqC;QAX1D,gBAAW,GAAG,IAAI,qBAAqB,EAAE,CAAC;QAC1C,aAAQ,GAA+B,IAAI,GAAG,EAAE,CAAC;QAYrD,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,CAAC,MAAkB,EAAE,KAAY;QACpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,sBAAa,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,WAAW,CAAC,IAAc;QAEtB,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;QAExD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;QAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAEhD,IAAI,CAAC,IAAI,CACL,IAAI,oBAAW,CAAC,cAAc,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,EACtE,IAA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AAa;QACT,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA3MD,8EA2MC;AAED,MAAM,qBAAqB;IAMhB,SAAS,CAAC,SAAoB;QAEjC,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,IAAI,qBAAqB,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC7F,IAAI,KAAK,GAAG,SAAS,CAAC,KAAK,IAAI,qBAAqB,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAErF,iCAAiC;QACjC,qCAAqC;QAErC,MAAM,QAAQ,GAAG,UAAU,OAAO,EAAE,CAAC;QACrC,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YAChD,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACxC;QAED,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;QACjC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QAEpB,OAAO,KAAK,CAAC;IACjB,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,IAAY;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC;;AA1Bc,2BAAK,GAAG,IAAI,MAAM,CAC7B,sJAAsJ,EAAE,uCAAuC;AAC/L,GAAG,CACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/playwright-test",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Serenity/JS reporter and test APIs for Playwright Test",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@playwright/test": "^1.35.1",
|
|
48
|
-
"@serenity-js/core": "3.
|
|
49
|
-
"@serenity-js/playwright": "3.
|
|
50
|
-
"@serenity-js/web": "3.
|
|
48
|
+
"@serenity-js/core": "3.6.0",
|
|
49
|
+
"@serenity-js/playwright": "3.6.0",
|
|
50
|
+
"@serenity-js/web": "3.6.0",
|
|
51
51
|
"deepmerge": "^4.3.1",
|
|
52
|
-
"tiny-types": "^1.
|
|
52
|
+
"tiny-types": "^1.20.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@integration/testing-tools": "3.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"mocha": "^10.2.0",
|
|
60
60
|
"mocha-multi": "^1.1.7",
|
|
61
61
|
"ts-node": "^10.9.1",
|
|
62
|
-
"typescript": "^5.
|
|
62
|
+
"typescript": "^5.1.6"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "970ac224860693ab70e813e176b7532241503b14"
|
|
65
65
|
}
|