@serenity-js/web 3.35.0 → 3.35.1

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 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.35.1](https://github.com/serenity-js/serenity-js/compare/v3.35.0...v3.35.1) (2025-09-28)
7
+
8
+ **Note:** Version bump only for package @serenity-js/web
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.35.0](https://github.com/serenity-js/serenity-js/compare/v3.34.2...v3.35.0) (2025-09-07)
7
15
 
8
16
 
@@ -1,10 +1,24 @@
1
1
  import { Selector } from './Selector';
2
+ /**
3
+ * @group Models
4
+ */
2
5
  export type ByRoleSelectorValue = 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'blockquote' | 'button' | 'caption' | 'cell' | 'checkbox' | 'code' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'deletion' | 'dialog' | 'directory' | 'document' | 'emphasis' | 'feed' | 'figure' | 'form' | 'generic' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'insertion' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'meter' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'navigation' | 'none' | 'note' | 'option' | 'paragraph' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'strong' | 'subscript' | 'superscript' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'textbox' | 'time' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem';
6
+ /**
7
+ * Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) by its [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
8
+ * [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
9
+ *
10
+ * **Pro tip:** Instantiate using [`By.role`](https://serenity-js.org/api/web/class/By/#role)
11
+ *
12
+ * @group Models
13
+ */
3
14
  export declare class ByRole extends Selector {
4
15
  readonly value: ByRoleSelectorValue;
5
16
  readonly options: ByRoleSelectorOptions;
6
17
  constructor(value: ByRoleSelectorValue, options: ByRoleSelectorOptions);
7
18
  }
19
+ /**
20
+ * @group Models
21
+ */
8
22
  export interface ByRoleSelectorOptions {
9
23
  /**
10
24
  * An attribute that is usually set by [`aria-checked`](https://www.w3.org/TR/wai-aria-1.2/#aria-checked) or
@@ -1 +1 @@
1
- {"version":3,"file":"ByRole.d.ts","sourceRoot":"","sources":["../../../../src/screenplay/models/selectors/ByRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,mBAAmB,GACzB,OAAO,GACP,aAAa,GACb,aAAa,GACb,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,GACN,cAAc,GACd,UAAU,GACV,eAAe,GACf,aAAa,GACb,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,WAAW,GACX,UAAU,GACV,UAAU,GACV,MAAM,GACN,QAAQ,GACR,MAAM,GACN,SAAS,GACT,MAAM,GACN,UAAU,GACV,OAAO,GACP,SAAS,GACT,KAAK,GACL,WAAW,GACX,MAAM,GACN,MAAM,GACN,SAAS,GACT,UAAU,GACV,KAAK,GACL,MAAM,GACN,SAAS,GACT,MAAM,GACN,OAAO,GACP,MAAM,GACN,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,eAAe,GACf,YAAY,GACZ,MAAM,GACN,MAAM,GACN,QAAQ,GACR,WAAW,GACX,cAAc,GACd,aAAa,GACb,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,KAAK,GACL,UAAU,GACV,WAAW,GACX,WAAW,GACX,QAAQ,GACR,WAAW,GACX,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,aAAa,GACb,QAAQ,GACR,KAAK,GACL,OAAO,GACP,SAAS,GACT,UAAU,GACV,MAAM,GACN,SAAS,GACT,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,MAAM,GACN,UAAU,GACV,UAAU,CAAA;AAEhB,qBAAa,MAAO,SAAQ,QAAQ;aACJ,KAAK,EAAE,mBAAmB;aAAkB,OAAO,EAAE,qBAAqB;gBAA1E,KAAK,EAAE,mBAAmB,EAAkB,OAAO,EAAE,qBAAqB;CAGzG;AAED,MAAM,WAAW,qBAAqB;IAElC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"ByRole.d.ts","sourceRoot":"","sources":["../../../../src/screenplay/models/selectors/ByRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GA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H,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -2,6 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ByRole = void 0;
4
4
  const Selector_1 = require("./Selector");
5
+ /**
6
+ * Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) by its [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
7
+ * [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
8
+ *
9
+ * **Pro tip:** Instantiate using [`By.role`](https://serenity-js.org/api/web/class/By/#role)
10
+ *
11
+ * @group Models
12
+ */
5
13
  class ByRole extends Selector_1.Selector {
6
14
  value;
7
15
  options;
@@ -1 +1 @@
1
- {"version":3,"file":"ByRole.js","sourceRoot":"","sources":["../../../../src/screenplay/models/selectors/ByRole.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAsFtC,MAAa,MAAO,SAAQ,mBAAQ;IACJ;IAA4C;IAAxE,YAA4B,KAA0B,EAAkB,OAA8B;QAClG,KAAK,EAAE,CAAC;QADgB,UAAK,GAAL,KAAK,CAAqB;QAAkB,YAAO,GAAP,OAAO,CAAuB;IAEtG,CAAC;CACJ;AAJD,wBAIC"}
1
+ {"version":3,"file":"ByRole.js","sourceRoot":"","sources":["../../../../src/screenplay/models/selectors/ByRole.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAyFtC;;;;;;;GAOG;AACH,MAAa,MAAO,SAAQ,mBAAQ;IACJ;IAA4C;IAAxE,YAA4B,KAA0B,EAAkB,OAA8B;QAClG,KAAK,EAAE,CAAC;QADgB,UAAK,GAAL,KAAK,CAAqB;QAAkB,YAAO,GAAP,OAAO,CAAuB;IAEtG,CAAC;CACJ;AAJD,wBAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenity-js/web",
3
- "version": "3.35.0",
3
+ "version": "3.35.1",
4
4
  "description": "Serenity/JS Screenplay Pattern library offering a flexible, web driver-agnostic approach for interacting with web-based user interfaces and components, suitable for various testing contexts",
5
5
  "author": {
6
6
  "name": "Jan Molak",
@@ -53,8 +53,8 @@
53
53
  "node": "^18.12 || ^20 || ^22"
54
54
  },
55
55
  "dependencies": {
56
- "@serenity-js/assertions": "3.35.0",
57
- "@serenity-js/core": "3.35.0",
56
+ "@serenity-js/assertions": "3.35.1",
57
+ "@serenity-js/core": "3.35.1",
58
58
  "tiny-types": "1.24.1"
59
59
  },
60
60
  "devDependencies": {
@@ -67,5 +67,5 @@
67
67
  "ts-node": "10.9.2",
68
68
  "typescript": "5.9.2"
69
69
  },
70
- "gitHead": "b87c48f8c67c0a51173cd5c29eb6e8599ca131ca"
70
+ "gitHead": "f8b08ebf12dbf37a3176d4a27c67afd466ed9b92"
71
71
  }
@@ -1,5 +1,8 @@
1
1
  import { Selector } from './Selector';
2
2
 
3
+ /**
4
+ * @group Models
5
+ */
3
6
  export type ByRoleSelectorValue =
4
7
  | 'alert'
5
8
  | 'alertdialog'
@@ -84,12 +87,23 @@ export type ByRoleSelectorValue =
84
87
  | 'treegrid'
85
88
  | 'treeitem'
86
89
 
90
+ /**
91
+ * Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) by its [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
92
+ * [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
93
+ *
94
+ * **Pro tip:** Instantiate using [`By.role`](https://serenity-js.org/api/web/class/By/#role)
95
+ *
96
+ * @group Models
97
+ */
87
98
  export class ByRole extends Selector {
88
99
  constructor(public readonly value: ByRoleSelectorValue, public readonly options: ByRoleSelectorOptions) {
89
100
  super();
90
101
  }
91
102
  }
92
103
 
104
+ /**
105
+ * @group Models
106
+ */
93
107
  export interface ByRoleSelectorOptions {
94
108
 
95
109
  /**