@serenity-js/playwright
Advanced tools
Comparing version 3.9.1 to 3.10.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.10.0](https://github.com/serenity-js/serenity-js/compare/v3.9.1...v3.10.0) (2023-08-23) | ||
### Features | ||
* **web:** chainable `PageElements` ([#1864](https://github.com/serenity-js/serenity-js/issues/1864)) ([4d0c7eb](https://github.com/serenity-js/serenity-js/commit/4d0c7eb97c24fe3ae1eed702773cf3b80f104947)) | ||
## [3.9.1](https://github.com/serenity-js/serenity-js/compare/v3.9.0...v3.9.1) (2023-08-18) | ||
@@ -8,0 +19,0 @@ |
/// <reference types="node" /> | ||
import { type QuestionAdapter } from '@serenity-js/core'; | ||
import type { CorrelationId } from '@serenity-js/core/lib/model'; | ||
import type { Cookie, CookieData, PageElement, Selector } from '@serenity-js/web'; | ||
import { Key, Page, PageElements } from '@serenity-js/web'; | ||
import type { Cookie, CookieData, PageElement, PageElements, Selector } from '@serenity-js/web'; | ||
import { Key, Page } from '@serenity-js/web'; | ||
import type * as playwright from 'playwright-core'; | ||
@@ -7,0 +7,0 @@ import { URL } from 'url'; |
@@ -33,3 +33,3 @@ "use strict"; | ||
locateAll(selector) { | ||
return new web_1.PageElements(new locators_1.PlaywrightLocator(this.rootLocator, selector)); | ||
return core_1.List.of(new web_1.PageElementsLocator(new locators_1.PlaywrightLocator(this.rootLocator, selector))); | ||
} | ||
@@ -36,0 +36,0 @@ async navigateTo(destination) { |
{ | ||
"name": "@serenity-js/playwright", | ||
"version": "3.9.1", | ||
"version": "3.10.0", | ||
"description": "Serenity/JS Screenplay Pattern library for Playwright", | ||
@@ -46,4 +46,4 @@ "author": { | ||
"dependencies": { | ||
"@serenity-js/core": "3.9.1", | ||
"@serenity-js/web": "3.9.1", | ||
"@serenity-js/core": "3.10.0", | ||
"@serenity-js/web": "3.10.0", | ||
"playwright-core": "^1.37.1", | ||
@@ -62,3 +62,3 @@ "tiny-types": "^1.20.0" | ||
}, | ||
"gitHead": "237e0291a7eca71e5f5c0777e1f9d637e8622113" | ||
"gitHead": "06ae5d8a702be0be2890e989c120715c32f6578a" | ||
} |
@@ -1,6 +0,6 @@ | ||
import { LogicError, type QuestionAdapter } from '@serenity-js/core'; | ||
import { List, LogicError, type QuestionAdapter } from '@serenity-js/core'; | ||
import { asyncMap } from '@serenity-js/core/lib/io'; | ||
import type { CorrelationId } from '@serenity-js/core/lib/model'; | ||
import type { Cookie, CookieData, PageElement, Selector } from '@serenity-js/web'; | ||
import { ByDeepCss, Key, Page, PageElements } from '@serenity-js/web'; | ||
import type { Cookie, CookieData, PageElement, PageElements,Selector } from '@serenity-js/web'; | ||
import { ByDeepCss, Key, Page, PageElementsLocator } from '@serenity-js/web'; | ||
import type * as playwright from 'playwright-core'; | ||
@@ -63,6 +63,8 @@ import { URL } from 'url'; | ||
locateAll(selector: Selector): PageElements<playwright.Locator> { | ||
return new PageElements( | ||
new PlaywrightLocator( | ||
this.rootLocator, | ||
selector | ||
return List.of( | ||
new PageElementsLocator( | ||
new PlaywrightLocator( | ||
this.rootLocator, | ||
selector | ||
) | ||
) | ||
@@ -69,0 +71,0 @@ ); |
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
182815
2491
+ Added@serenity-js/assertions@3.10.0(transitive)
+ Added@serenity-js/core@3.10.0(transitive)
+ Added@serenity-js/web@3.10.0(transitive)
- Removed@serenity-js/assertions@3.9.1(transitive)
- Removed@serenity-js/core@3.9.1(transitive)
- Removed@serenity-js/web@3.9.1(transitive)
Updated@serenity-js/core@3.10.0
Updated@serenity-js/web@3.10.0