@serenity-js/playwright-test
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [3.1.1](https://github.com/serenity-js/serenity-js/compare/v3.1.0...v3.1.1) (2023-04-05) | ||
### Bug Fixes | ||
* **deps:** update playwright dependencies to ^1.32.2 ([8398ec3](https://github.com/serenity-js/serenity-js/commit/8398ec364836f45af9e5734687e1655ca10a7784)) | ||
* **playwright-test:** use custom interactionTimeout when provided in the config ([71c0401](https://github.com/serenity-js/serenity-js/commit/71c0401539b722ad6858d9dcb6393593254c3787)), closes [#1604](https://github.com/serenity-js/serenity-js/issues/1604) | ||
# [3.1.0](https://github.com/serenity-js/serenity-js/compare/v3.0.1...v3.1.0) (2023-04-02) | ||
@@ -8,0 +20,0 @@ |
@@ -195,2 +195,12 @@ import { PlaywrightTestOptions, PlaywrightWorkerArgs, TestFixture } from '@playwright/test'; | ||
/** | ||
* The maximum default amount of time allowed for interactions such as {@apilink Wait.until} | ||
* to complete. | ||
* | ||
* Defaults to **5 seconds**, can be overridden per interaction. | ||
* | ||
* #### Learn more | ||
* - {@apilink Wait.until} | ||
*/ | ||
interactionTimeout?: Duration; | ||
/** | ||
* Playwright [BrowserContextOptions](https://playwright.dev/docs/api/class-testoptions#test-options-context-options), | ||
@@ -197,0 +207,0 @@ * augmented with several convenience properties to be used with the {@apilink Ability|ability} to {@apilink BrowseTheWebWithPlaywright}. |
@@ -106,2 +106,6 @@ "use strict"; | ||
], | ||
interactionTimeout: [ | ||
core_1.Duration.ofSeconds(5), | ||
{ option: true }, | ||
], | ||
crew: [ | ||
@@ -122,3 +126,3 @@ [ | ||
}, | ||
serenity: async ({ crew, cueTimeout, platform }, use, info) => { | ||
serenity: async ({ crew, cueTimeout, interactionTimeout, platform }, use, info) => { | ||
const domainEventBuffer = new reporter_1.DomainEventBuffer(); | ||
@@ -128,2 +132,3 @@ core_1.serenity.configure({ | ||
cueTimeout: asDuration(cueTimeout), | ||
interactionTimeout: asDuration(interactionTimeout), | ||
crew: [ | ||
@@ -130,0 +135,0 @@ ...crew, |
{ | ||
"name": "@serenity-js/playwright-test", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Serenity/JS reporter and test APIs for Playwright Test", | ||
@@ -47,6 +47,6 @@ "author": { | ||
"dependencies": { | ||
"@playwright/test": "^1.32.1", | ||
"@serenity-js/core": "3.1.0", | ||
"@serenity-js/playwright": "3.1.0", | ||
"@serenity-js/web": "3.1.0", | ||
"@playwright/test": "^1.32.2", | ||
"@serenity-js/core": "3.1.1", | ||
"@serenity-js/playwright": "3.1.1", | ||
"@serenity-js/web": "3.1.1", | ||
"deepmerge": "^4.3.1", | ||
@@ -65,3 +65,3 @@ "tiny-types": "^1.19.1" | ||
}, | ||
"gitHead": "a188b0763c1df74bb10499f0482e510f08467705" | ||
"gitHead": "f11d5ecf323507cab2e14319de9f189b91208924" | ||
} |
@@ -201,2 +201,13 @@ import { PlaywrightTestOptions, PlaywrightWorkerArgs, TestFixture } from '@playwright/test'; | ||
/** | ||
* The maximum default amount of time allowed for interactions such as {@apilink Wait.until} | ||
* to complete. | ||
* | ||
* Defaults to **5 seconds**, can be overridden per interaction. | ||
* | ||
* #### Learn more | ||
* - {@apilink Wait.until} | ||
*/ | ||
interactionTimeout?: Duration; | ||
/** | ||
* Playwright [BrowserContextOptions](https://playwright.dev/docs/api/class-testoptions#test-options-context-options), | ||
@@ -203,0 +214,0 @@ * augmented with several convenience properties to be used with the {@apilink Ability|ability} to {@apilink BrowseTheWebWithPlaywright}. |
@@ -93,2 +93,7 @@ import { test as base, TestInfo } from '@playwright/test'; | ||
interactionTimeout: [ | ||
Duration.ofSeconds(5), | ||
{ option: true }, | ||
], | ||
crew: [ | ||
@@ -113,3 +118,3 @@ [ | ||
serenity: async ({ crew, cueTimeout, platform }, use, info: TestInfo) => { | ||
serenity: async ({ crew, cueTimeout, interactionTimeout, platform }, use, info: TestInfo) => { | ||
@@ -121,2 +126,3 @@ const domainEventBuffer = new DomainEventBuffer(); | ||
cueTimeout: asDuration(cueTimeout), | ||
interactionTimeout: asDuration(interactionTimeout), | ||
crew: [ | ||
@@ -123,0 +129,0 @@ ...crew, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150280
2326
+ Added@serenity-js/assertions@3.1.1(transitive)
+ Added@serenity-js/core@3.1.1(transitive)
+ Added@serenity-js/playwright@3.1.1(transitive)
+ Added@serenity-js/web@3.1.1(transitive)
- Removed@serenity-js/assertions@3.1.0(transitive)
- Removed@serenity-js/core@3.1.0(transitive)
- Removed@serenity-js/playwright@3.1.0(transitive)
- Removed@serenity-js/web@3.1.0(transitive)
Updated@playwright/test@^1.32.2
Updated@serenity-js/core@3.1.1
Updated@serenity-js/web@3.1.1