playwright-cucumber-ts-steps 1.3.2 → 1.3.3

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.
Files changed (70) hide show
  1. package/README.md +358 -671
  2. package/dist/backend/actions/click.d.ts +29 -29
  3. package/dist/backend/actions/click.js +29 -29
  4. package/dist/backend/actions/form.d.ts +2 -2
  5. package/dist/backend/actions/form.js +2 -2
  6. package/dist/backend/actions/formTable.d.ts +1 -1
  7. package/dist/backend/actions/formTable.js +1 -1
  8. package/dist/backend/actions/frames.d.ts +3 -3
  9. package/dist/backend/actions/frames.js +3 -3
  10. package/dist/backend/actions/inputs.d.ts +14 -14
  11. package/dist/backend/actions/inputs.js +14 -14
  12. package/dist/backend/actions/interactions.d.ts +7 -7
  13. package/dist/backend/actions/interactions.js +7 -7
  14. package/dist/backend/actions/keyboard.d.ts +6 -6
  15. package/dist/backend/actions/keyboard.js +6 -6
  16. package/dist/backend/actions/misc.d.ts +15 -15
  17. package/dist/backend/actions/misc.js +15 -15
  18. package/dist/backend/actions/mobile.d.ts +7 -7
  19. package/dist/backend/actions/mobile.js +7 -7
  20. package/dist/backend/actions/mouse.d.ts +9 -9
  21. package/dist/backend/actions/mouse.js +9 -9
  22. package/dist/backend/actions/navigation.d.ts +5 -5
  23. package/dist/backend/actions/navigation.js +5 -5
  24. package/dist/backend/actions/visual.d.ts +6 -6
  25. package/dist/backend/actions/visual.js +6 -6
  26. package/dist/backend/actions/waits.d.ts +6 -6
  27. package/dist/backend/actions/waits.js +6 -6
  28. package/dist/backend/api/assertions.d.ts +3 -3
  29. package/dist/backend/api/assertions.js +3 -3
  30. package/dist/backend/api/mock.d.ts +3 -3
  31. package/dist/backend/api/mock.js +3 -3
  32. package/dist/backend/api/network.d.ts +6 -6
  33. package/dist/backend/api/network.js +6 -6
  34. package/dist/backend/api/requests.d.ts +4 -4
  35. package/dist/backend/api/requests.js +4 -4
  36. package/dist/backend/assertions/document.d.ts +10 -10
  37. package/dist/backend/assertions/document.js +10 -10
  38. package/dist/backend/assertions/elements.d.ts +28 -28
  39. package/dist/backend/assertions/elements.js +28 -28
  40. package/dist/backend/assertions/expectVisible.d.ts +1 -1
  41. package/dist/backend/assertions/expectVisible.js +1 -1
  42. package/dist/backend/assertions/forms.d.ts +7 -7
  43. package/dist/backend/assertions/forms.js +7 -7
  44. package/dist/backend/assertions/pageState.d.ts +4 -4
  45. package/dist/backend/assertions/pageState.js +4 -4
  46. package/dist/backend/assertions/storage.d.ts +11 -11
  47. package/dist/backend/assertions/storage.js +11 -11
  48. package/dist/backend/assertions/text.d.ts +17 -17
  49. package/dist/backend/assertions/text.js +17 -17
  50. package/dist/backend/assertions/visibility.d.ts +15 -15
  51. package/dist/backend/assertions/visibility.js +15 -15
  52. package/dist/backend/auth/index.d.ts +2 -2
  53. package/dist/backend/auth/index.js +2 -2
  54. package/dist/backend/db/steps.d.ts +9 -9
  55. package/dist/backend/db/steps.js +9 -9
  56. package/dist/backend/elements/alerts.d.ts +3 -3
  57. package/dist/backend/elements/alerts.js +3 -3
  58. package/dist/backend/elements/find.d.ts +15 -15
  59. package/dist/backend/elements/find.js +15 -15
  60. package/dist/backend/elements/forms.d.ts +4 -4
  61. package/dist/backend/elements/forms.js +4 -4
  62. package/dist/backend/elements/frames.d.ts +3 -3
  63. package/dist/backend/elements/frames.js +3 -3
  64. package/dist/backend/utils/fixtures.d.ts +22 -0
  65. package/dist/backend/utils/fixtures.d.ts.map +1 -1
  66. package/dist/backend/utils/fixtures.js +76 -2
  67. package/dist/index.d.ts +1 -0
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +3 -1
  70. package/package.json +1 -1
@@ -39,7 +39,7 @@ const resolver_1 = require("../utils/resolver");
39
39
  /**
40
40
  * Counts the number of elements matching the selector.
41
41
  * Supports fixtures for reusable selectors.
42
- * @example Then I count elements "li.item"
42
+ * @example Then I pw count elements "li.item"
43
43
  */
44
44
  async function countElements(page, selectorKey) {
45
45
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -50,7 +50,7 @@ async function countElements(page, selectorKey) {
50
50
  /**
51
51
  * Asserts that a button element does not exist or is not visible.
52
52
  * Supports fixtures for reusable selectors.
53
- * @example Then I do not see button element "nav.logoutBtn"
53
+ * @example Then I pw do not see button element "nav.logoutBtn"
54
54
  */
55
55
  async function expectButtonNotVisible(page, selectorKey) {
56
56
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -60,7 +60,7 @@ async function expectButtonNotVisible(page, selectorKey) {
60
60
  /**
61
61
  * Asserts that a heading element does not exist or is not visible.
62
62
  * Supports fixtures for reusable selectors.
63
- * @example Then I do not see heading element "h1.main-title"
63
+ * @example Then I pw do not see heading element "h1.main-title"
64
64
  */
65
65
  async function expectHeadingNotVisible(page, selectorKey) {
66
66
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -76,7 +76,7 @@ async function expectHeadingNotVisible(page, selectorKey) {
76
76
  /**
77
77
  * Asserts that a label element does not exist or is not visible.
78
78
  * Supports fixtures for reusable selectors.
79
- * @example Then I do not see label element "label.username-label"
79
+ * @example Then I pw do not see label element "label.username-label"
80
80
  */
81
81
  async function expectLabelNotVisible(page, selectorKey) {
82
82
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -92,7 +92,7 @@ async function expectLabelNotVisible(page, selectorKey) {
92
92
  /**
93
93
  * Asserts that a link element does not exist or is not visible.
94
94
  * Supports fixtures for reusable selectors.
95
- * @example Then I do not see link element "a.privacy-link"
95
+ * @example Then I pw do not see link element "a.privacy-link"
96
96
  */
97
97
  async function expectLinkNotVisible(page, selectorKey) {
98
98
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -108,7 +108,7 @@ async function expectLinkNotVisible(page, selectorKey) {
108
108
  /**
109
109
  * Asserts that an element with a specific test ID does not exist or is not visible.
110
110
  * Supports fixtures for reusable test IDs.
111
- * @example Then I do not see testid element "data-testid=my-component"
111
+ * @example Then I pw do not see testid element "data-testid=my-component"
112
112
  */
113
113
  async function expectTestIdNotVisible(page, selectorKey) {
114
114
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -124,7 +124,7 @@ async function expectTestIdNotVisible(page, selectorKey) {
124
124
  /**
125
125
  * Asserts that an element with a specific role does not exist or is not visible.
126
126
  * Supports fixtures for reusable roles.
127
- * @example Then I do not see role element "button"
127
+ * @example Then I pw do not see role element "button"
128
128
  */
129
129
  async function expectRoleNotVisible(page, roleKey) {
130
130
  const roles = (0, fixtures_1.loadFixture)("roles.json");
@@ -140,7 +140,7 @@ async function expectRoleNotVisible(page, roleKey) {
140
140
  /**
141
141
  * Asserts that an option element does not exist or is not visible.
142
142
  * Supports fixtures for reusable selectors.
143
- * @example Then I do not see option element "option[value='disabled']"
143
+ * @example Then I pw do not see option element "option[value='disabled']"
144
144
  */
145
145
  async function expectOptionNotVisible(page, selectorKey) {
146
146
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -156,7 +156,7 @@ async function expectOptionNotVisible(page, selectorKey) {
156
156
  /**
157
157
  * Asserts that an element with a specific attribute does not exist or is not visible.
158
158
  * Supports fixtures for reusable selectors and attribute values.
159
- * @example Then I do not see element with attribute "aria-hidden" having value "false"
159
+ * @example Then I pw do not see element with attribute "aria-hidden" having value "false"
160
160
  */
161
161
  async function expectElementWithAttributeNotVisible(page, attrKey, valueKey) {
162
162
  const attributes = (0, fixtures_1.loadFixture)("attributes.json");
@@ -175,7 +175,7 @@ async function expectElementWithAttributeNotVisible(page, attrKey, valueKey) {
175
175
  /**
176
176
  * Asserts that an element has an attribute containing the specified value.
177
177
  * Supports fixtures for reusable selectors, attributes and values.
178
- * @example Then I see element attribute "class" contains "active"
178
+ * @example Then I pw see element attribute "class" contains "active"
179
179
  */
180
180
  async function expectElementAttributeContains(page, selectorKey, attrKey, valueKey) {
181
181
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -194,7 +194,7 @@ async function expectElementAttributeContains(page, selectorKey, attrKey, valueK
194
194
  /**
195
195
  * Asserts that an element has an attribute equal to the specified value.
196
196
  * Supports fixtures for reusable selectors, attributes and values.
197
- * @example Then I see element attribute "class" equals "btn-primary"
197
+ * @example Then I pw see element attribute "class" equals "btn-primary"
198
198
  */
199
199
  async function expectElementAttributeEquals(page, selectorKey, attrKey, valueKey) {
200
200
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -213,7 +213,7 @@ async function expectElementAttributeEquals(page, selectorKey, attrKey, valueKey
213
213
  /**
214
214
  * Asserts that an element has a specific attribute.
215
215
  * Supports fixtures for reusable selectors and attributes.
216
- * @example Then I see element has attribute "aria-label"
216
+ * @example Then I pw see element has attribute "aria-label"
217
217
  */
218
218
  async function expectElementHasAttribute(page, selectorKey, attrKey) {
219
219
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -230,7 +230,7 @@ async function expectElementHasAttribute(page, selectorKey, attrKey) {
230
230
  /**
231
231
  * Asserts that a button element exists and is visible.
232
232
  * Supports fixtures for reusable selectors.
233
- * @example Then I see button element "nav.loginBtn"
233
+ * @example Then I pw see button element "nav.loginBtn"
234
234
  */
235
235
  async function expectButtonVisible(page, selectorKey) {
236
236
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -239,7 +239,7 @@ async function expectButtonVisible(page, selectorKey) {
239
239
  }
240
240
  /**
241
241
  * Gets an element by selector and asserts it has a class containing the specified text.
242
- * @example Then I get element by selector "button.primary" to have class containing "active"
242
+ * @example Then I pw get element by selector "button.primary" to have class containing "active"
243
243
  */
244
244
  async function expectElementToHaveClassContaining(page, selectorKey, classKey) {
245
245
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -255,7 +255,7 @@ async function expectElementToHaveClassContaining(page, selectorKey, classKey) {
255
255
  /**
256
256
  * Asserts that an element does NOT contain the specified text.
257
257
  * Supports fixtures for reusable selectors and text values.
258
- * @example Then I get element by selector "error.message" to not contain text "success"
258
+ * @example Then I pw get element by selector "error.message" to not contain text "success"
259
259
  */
260
260
  async function expectElementToNotContainText(page, selectorKey, textKey) {
261
261
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -267,7 +267,7 @@ async function expectElementToNotContainText(page, selectorKey, textKey) {
267
267
  }
268
268
  /**
269
269
  * Gets an element by selector and asserts it has the exact text specified.
270
- * @example Then I get element by selector "header.title" to have text "Welcome Home"
270
+ * @example Then I pw get element by selector "header.title" to have text "Welcome Home"
271
271
  */
272
272
  async function expectElementToHaveText(page, selectorKey, textKey) {
273
273
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -277,7 +277,7 @@ async function expectElementToHaveText(page, selectorKey, textKey) {
277
277
  }
278
278
  /**
279
279
  * Gets an element by selector and asserts it contains the specified text.
280
- * @example Then I get element by selector "error.message" to contain text "invalid credentials"
280
+ * @example Then I pw get element by selector "error.message" to contain text "invalid credentials"
281
281
  */
282
282
  async function expectElementToContainText(page, selectorKey, textKey) {
283
283
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -287,7 +287,7 @@ async function expectElementToContainText(page, selectorKey, textKey) {
287
287
  }
288
288
  /**
289
289
  * Gets an element by selector and asserts it has the specified value.
290
- * @example Then I get element by selector "login.usernameField" to have value "john_doe"
290
+ * @example Then I pw get element by selector "login.usernameField" to have value "john_doe"
291
291
  */
292
292
  async function expectElementToHaveValue(page, selectorKey, valueKey) {
293
293
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -297,7 +297,7 @@ async function expectElementToHaveValue(page, selectorKey, valueKey) {
297
297
  }
298
298
  /**
299
299
  * Gets an element by selector and asserts it has the specified attribute with value.
300
- * @example Then I get element by selector "terms.link" to have attribute "href" with value "/terms-and-conditions"
300
+ * @example Then I pw get element by selector "terms.link" to have attribute "href" with value "/terms-and-conditions"
301
301
  */
302
302
  async function expectElementAttributeValue(page, selectorKey, attrKey, valueKey) {
303
303
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -308,7 +308,7 @@ async function expectElementAttributeValue(page, selectorKey, attrKey, valueKey)
308
308
  }
309
309
  /**
310
310
  * Gets an element by selector and asserts it is visible.
311
- * @example When I get element by selector "div.modal" to be visible
311
+ * @example When I pw get element by selector "div.modal" to be visible
312
312
  */
313
313
  async function getElementBySelectorToBeVisible(page, selectorKey) {
314
314
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -318,7 +318,7 @@ async function getElementBySelectorToBeVisible(page, selectorKey) {
318
318
  /**
319
319
  * Asserts that a heading element exists and is visible.
320
320
  * Supports fixtures for reusable selectors.
321
- * @example Then I see heading element "h1.main-title"
321
+ * @example Then I pw see heading element "h1.main-title"
322
322
  */
323
323
  async function expectHeadingVisible(page, selectorKey) {
324
324
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -329,7 +329,7 @@ async function expectHeadingVisible(page, selectorKey) {
329
329
  /**
330
330
  * Asserts that a label element exists and is visible.
331
331
  * Supports fixtures for reusable selectors.
332
- * @example Then I see label element "label.username-label"
332
+ * @example Then I pw see label element "label.username-label"
333
333
  */
334
334
  async function expectLabelVisible(page, selectorKey) {
335
335
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -340,7 +340,7 @@ async function expectLabelVisible(page, selectorKey) {
340
340
  /**
341
341
  * Asserts that a link element exists and is visible.
342
342
  * Supports fixtures for reusable selectors.
343
- * @example Then I see link element "a.privacy-link"
343
+ * @example Then I pw see link element "a.privacy-link"
344
344
  */
345
345
  async function expectLinkVisible(page, selectorKey) {
346
346
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -351,7 +351,7 @@ async function expectLinkVisible(page, selectorKey) {
351
351
  /**
352
352
  * Asserts that an element with a specific test ID exists and is visible.
353
353
  * Supports fixtures for reusable test IDs.
354
- * @example Then I see testid element "data-testid=my-component"
354
+ * @example Then I pw see testid element "data-testid=my-component"
355
355
  */
356
356
  async function expectTestIdVisible(page, selectorKey) {
357
357
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -362,7 +362,7 @@ async function expectTestIdVisible(page, selectorKey) {
362
362
  /**
363
363
  * Asserts that an element with a specific role exists and is visible.
364
364
  * Supports fixtures for reusable roles.
365
- * @example Then I see role element "button"
365
+ * @example Then I pw see role element "button"
366
366
  */
367
367
  async function expectRoleVisible(page, roleKey) {
368
368
  const roles = (0, fixtures_1.loadFixture)("roles.json");
@@ -373,7 +373,7 @@ async function expectRoleVisible(page, roleKey) {
373
373
  /**
374
374
  * Asserts that an option element exists and is visible.
375
375
  * Supports fixtures for reusable selectors.
376
- * @example Then I see option element "option[value='enabled']"
376
+ * @example Then I pw see option element "option[value='enabled']"
377
377
  */
378
378
  async function expectOptionVisible(page, selectorKey) {
379
379
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -384,7 +384,7 @@ async function expectOptionVisible(page, selectorKey) {
384
384
  /**
385
385
  * Asserts that an element has a specific count of occurrences.
386
386
  * Supports fixtures for reusable selectors.
387
- * @example Then I expect "li.item" to have count 5
387
+ * @example Then I pw expect "li.item" to have count 5
388
388
  */
389
389
  async function expectElementToHaveCount(page, selectorKey, count) {
390
390
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -399,7 +399,7 @@ async function expectElementToHaveCount(page, selectorKey, count) {
399
399
  /**
400
400
  * Asserts that an element is hidden (not visible).
401
401
  * Supports fixtures for reusable selectors.
402
- * @example Then I expect "modal.overlay" to be hidden
402
+ * @example Then I pw expect "modal.overlay" to be hidden
403
403
  */
404
404
  async function expectElementToBeHidden(page, selectorKey) {
405
405
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Asserts that a specific element is visible on the page.
3
3
  * Supports fixtures for reusable selectors.
4
- * @example When I expect the element "header.logo" to be visible
4
+ * @example When I pw expect the element "header.logo" to be visible
5
5
  */
6
6
  export declare function expectVisible(page: any, selectorKey: string, timeout?: number): Promise<void>;
7
7
  //# sourceMappingURL=expectVisible.d.ts.map
@@ -10,7 +10,7 @@ const fixtures_1 = require("../utils/fixtures");
10
10
  /**
11
11
  * Asserts that a specific element is visible on the page.
12
12
  * Supports fixtures for reusable selectors.
13
- * @example When I expect the element "header.logo" to be visible
13
+ * @example When I pw expect the element "header.logo" to be visible
14
14
  */
15
15
  async function expectVisible(page, selectorKey, timeout = 2000) {
16
16
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -1,43 +1,43 @@
1
1
  /**
2
2
  * Asserts that an input element has the expected value.
3
3
  * Supports fixtures for reusable selectors and values.
4
- * @example Then I see input value "login.username" equals "testuser"
4
+ * @example Then I pw see input value "login.username" equals "testuser"
5
5
  */
6
6
  export declare function expectInputValue(page: any, selectorKey: string, valueKey: string): Promise<void>;
7
7
  /**
8
8
  * Asserts that an input element has a value containing the expected substring.
9
9
  * Supports fixtures for reusable selectors and values.
10
- * @example Then I see input value "login.username" contains "test"
10
+ * @example Then I pw see input value "login.username" contains "test"
11
11
  */
12
12
  export declare function expectInputValueContains(page: any, selectorKey: string, valueKey: string): Promise<void>;
13
13
  /**
14
14
  * Asserts that a textarea element has the expected value.
15
15
  * Supports fixtures for reusable selectors and values.
16
- * @example Then I see textarea value "comments.textarea" equals "This is my comment"
16
+ * @example Then I pw see textarea value "comments.textarea" equals "This is my comment"
17
17
  */
18
18
  export declare function expectTextareaValue(page: any, selectorKey: string, valueKey: string): Promise<void>;
19
19
  /**
20
20
  * Asserts that a textarea element has a value containing the expected substring.
21
21
  * Supports fixtures for reusable selectors and values.
22
- * @example Then I see textarea value "comments.textarea" contains "comment"
22
+ * @example Then I pw see textarea value "comments.textarea" contains "comment"
23
23
  */
24
24
  export declare function expectTextareaValueContains(page: any, selectorKey: string, valueKey: string): Promise<void>;
25
25
  /**
26
26
  * Asserts that an element has the expected text content.
27
27
  * Supports fixtures for reusable selectors and text values.
28
- * @example Then I see text "header.title" equals "Welcome to our site"
28
+ * @example Then I pw see text "header.title" equals "Welcome to our site"
29
29
  */
30
30
  export declare function expectText(page: any, selectorKey: string, textKey: string): Promise<void>;
31
31
  /**
32
32
  * Asserts that an element has text content containing the expected substring.
33
33
  * Supports fixtures for reusable selectors and text values.
34
- * @example Then I see text "header.title" contains "Welcome"
34
+ * @example Then I pw see text "header.title" contains "Welcome"
35
35
  */
36
36
  export declare function expectTextContains(page: any, selectorKey: string, textKey: string): Promise<void>;
37
37
  /**
38
38
  * Asserts that an element has the expected value (for form elements).
39
39
  * Supports fixtures for reusable selectors and values.
40
- * @example Then I see value "input.amount" equals "100"
40
+ * @example Then I pw see value "input.amount" equals "100"
41
41
  */
42
42
  export declare function expectValue(page: any, selectorKey: string, valueKey: string): Promise<void>;
43
43
  //# sourceMappingURL=forms.d.ts.map
@@ -17,7 +17,7 @@ const fixtures_1 = require("../utils/fixtures");
17
17
  /**
18
18
  * Asserts that an input element has the expected value.
19
19
  * Supports fixtures for reusable selectors and values.
20
- * @example Then I see input value "login.username" equals "testuser"
20
+ * @example Then I pw see input value "login.username" equals "testuser"
21
21
  */
22
22
  async function expectInputValue(page, selectorKey, valueKey) {
23
23
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -30,7 +30,7 @@ async function expectInputValue(page, selectorKey, valueKey) {
30
30
  /**
31
31
  * Asserts that an input element has a value containing the expected substring.
32
32
  * Supports fixtures for reusable selectors and values.
33
- * @example Then I see input value "login.username" contains "test"
33
+ * @example Then I pw see input value "login.username" contains "test"
34
34
  */
35
35
  async function expectInputValueContains(page, selectorKey, valueKey) {
36
36
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -46,7 +46,7 @@ async function expectInputValueContains(page, selectorKey, valueKey) {
46
46
  /**
47
47
  * Asserts that a textarea element has the expected value.
48
48
  * Supports fixtures for reusable selectors and values.
49
- * @example Then I see textarea value "comments.textarea" equals "This is my comment"
49
+ * @example Then I pw see textarea value "comments.textarea" equals "This is my comment"
50
50
  */
51
51
  async function expectTextareaValue(page, selectorKey, valueKey) {
52
52
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -59,7 +59,7 @@ async function expectTextareaValue(page, selectorKey, valueKey) {
59
59
  /**
60
60
  * Asserts that a textarea element has a value containing the expected substring.
61
61
  * Supports fixtures for reusable selectors and values.
62
- * @example Then I see textarea value "comments.textarea" contains "comment"
62
+ * @example Then I pw see textarea value "comments.textarea" contains "comment"
63
63
  */
64
64
  async function expectTextareaValueContains(page, selectorKey, valueKey) {
65
65
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -75,7 +75,7 @@ async function expectTextareaValueContains(page, selectorKey, valueKey) {
75
75
  /**
76
76
  * Asserts that an element has the expected text content.
77
77
  * Supports fixtures for reusable selectors and text values.
78
- * @example Then I see text "header.title" equals "Welcome to our site"
78
+ * @example Then I pw see text "header.title" equals "Welcome to our site"
79
79
  */
80
80
  async function expectText(page, selectorKey, textKey) {
81
81
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -88,7 +88,7 @@ async function expectText(page, selectorKey, textKey) {
88
88
  /**
89
89
  * Asserts that an element has text content containing the expected substring.
90
90
  * Supports fixtures for reusable selectors and text values.
91
- * @example Then I see text "header.title" contains "Welcome"
91
+ * @example Then I pw see text "header.title" contains "Welcome"
92
92
  */
93
93
  async function expectTextContains(page, selectorKey, textKey) {
94
94
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -104,7 +104,7 @@ async function expectTextContains(page, selectorKey, textKey) {
104
104
  /**
105
105
  * Asserts that an element has the expected value (for form elements).
106
106
  * Supports fixtures for reusable selectors and values.
107
- * @example Then I see value "input.amount" equals "100"
107
+ * @example Then I pw see value "input.amount" equals "100"
108
108
  */
109
109
  async function expectValue(page, selectorKey, valueKey) {
110
110
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -1,25 +1,25 @@
1
1
  /**
2
2
  * Asserts that the current browser URL contains a specific substring.
3
3
  * Supports fixtures for reusable URL parts.
4
- * @example Then I expect the url to contain "dashboard"
4
+ * @example Then I pw expect the url to contain "dashboard"
5
5
  */
6
6
  export declare function expectUrlToContain(page: any, partKey: string): Promise<void>;
7
7
  /**
8
8
  * Asserts that the current browser URL exactly matches the provided string.
9
9
  * Supports fixtures for reusable URLs.
10
- * @example Then I expect the url to be "app.dashboardUrl"
10
+ * @example Then I pw expect the url to be "app.dashboardUrl"
11
11
  */
12
12
  export declare function expectUrlToBe(page: any, urlKey: string): Promise<void>;
13
13
  /**
14
14
  * Asserts that the page's `<title>` tag contains a specific substring.
15
15
  * Supports fixtures for reusable title parts.
16
- * @example Then I expect the title to contain "Welcome"
16
+ * @example Then I pw expect the title to contain "Welcome"
17
17
  */
18
18
  export declare function expectTitleToContain(page: any, partKey: string): Promise<void>;
19
19
  /**
20
20
  * Asserts that the page's `<title>` tag exactly matches the provided string.
21
21
  * Supports fixtures for reusable titles.
22
- * @example Then I expect the title to be "app.homeTitle"
22
+ * @example Then I pw expect the title to be "app.homeTitle"
23
23
  */
24
24
  export declare function expectTitleToBe(page: any, titleKey: string): Promise<void>;
25
25
  //# sourceMappingURL=pageState.d.ts.map
@@ -14,7 +14,7 @@ const fixtures_1 = require("../utils/fixtures");
14
14
  /**
15
15
  * Asserts that the current browser URL contains a specific substring.
16
16
  * Supports fixtures for reusable URL parts.
17
- * @example Then I expect the url to contain "dashboard"
17
+ * @example Then I pw expect the url to contain "dashboard"
18
18
  */
19
19
  async function expectUrlToContain(page, partKey) {
20
20
  const urls = (0, fixtures_1.loadFixture)("urls.json");
@@ -25,7 +25,7 @@ async function expectUrlToContain(page, partKey) {
25
25
  /**
26
26
  * Asserts that the current browser URL exactly matches the provided string.
27
27
  * Supports fixtures for reusable URLs.
28
- * @example Then I expect the url to be "app.dashboardUrl"
28
+ * @example Then I pw expect the url to be "app.dashboardUrl"
29
29
  */
30
30
  async function expectUrlToBe(page, urlKey) {
31
31
  const urls = (0, fixtures_1.loadFixture)("urls.json");
@@ -36,7 +36,7 @@ async function expectUrlToBe(page, urlKey) {
36
36
  /**
37
37
  * Asserts that the page's `<title>` tag contains a specific substring.
38
38
  * Supports fixtures for reusable title parts.
39
- * @example Then I expect the title to contain "Welcome"
39
+ * @example Then I pw expect the title to contain "Welcome"
40
40
  */
41
41
  async function expectTitleToContain(page, partKey) {
42
42
  const titles = (0, fixtures_1.loadFixture)("titles.json");
@@ -47,7 +47,7 @@ async function expectTitleToContain(page, partKey) {
47
47
  /**
48
48
  * Asserts that the page's `<title>` tag exactly matches the provided string.
49
49
  * Supports fixtures for reusable titles.
50
- * @example Then I expect the title to be "app.homeTitle"
50
+ * @example Then I pw expect the title to be "app.homeTitle"
51
51
  */
52
52
  async function expectTitleToBe(page, titleKey) {
53
53
  const titles = (0, fixtures_1.loadFixture)("titles.json");
@@ -1,67 +1,67 @@
1
1
  /**
2
2
  * Asserts that a cookie exists and has the expected value.
3
3
  * Supports fixtures for reusable cookie names and values.
4
- * @example Then I see cookie "session_id" has value "abc123"
4
+ * @example Then I pw see cookie "session_id" has value "abc123"
5
5
  */
6
6
  export declare function expectCookieHasValue(page: any, cookieNameKey: string, valueKey: string): Promise<void>;
7
7
  /**
8
8
  * Asserts that a cookie exists and contains the expected substring.
9
9
  * Supports fixtures for reusable cookie names and values.
10
- * @example Then I see cookie "session_id" contains value "abc"
10
+ * @example Then I pw see cookie "session_id" contains value "abc"
11
11
  */
12
12
  export declare function expectCookieContainsValue(page: any, cookieNameKey: string, valueKey: string): Promise<void>;
13
13
  /**
14
14
  * Asserts that a cookie does not exist.
15
15
  * Supports fixtures for reusable cookie names.
16
- * @example Then I do not see cookie "old_session"
16
+ * @example Then I pw do not see cookie "old_session"
17
17
  */
18
18
  export declare function expectCookieDoesNotExist(page: any, cookieNameKey: string): Promise<void>;
19
19
  /**
20
20
  * Asserts that a local storage item exists and has the expected value.
21
21
  * Supports fixtures for reusable storage keys and values.
22
- * @example Then I see local storage item "user_prefs" equals "dark_theme"
22
+ * @example Then I pw see local storage item "user_prefs" equals "dark_theme"
23
23
  */
24
24
  export declare function expectLocalStorageItemEquals(page: any, keyKey: string, valueKey: string): Promise<void>;
25
25
  /**
26
26
  * Asserts that a local storage item exists and contains the expected substring.
27
27
  * Supports fixtures for reusable storage keys and values.
28
- * @example Then I see local storage item "user_prefs" contains "theme"
28
+ * @example Then I pw see local storage item "user_prefs" contains "theme"
29
29
  */
30
30
  export declare function expectLocalStorageItemContains(page: any, keyKey: string, valueKey: string): Promise<void>;
31
31
  /**
32
32
  * Asserts that a local storage item exists.
33
33
  * Supports fixtures for reusable storage keys.
34
- * @example Then I see local storage item "user_id"
34
+ * @example Then I pw see local storage item "user_id"
35
35
  */
36
36
  export declare function expectLocalStorageItem(page: any, keyKey: string): Promise<void>;
37
37
  /**
38
38
  * Asserts that a local storage item does not exist.
39
39
  * Supports fixtures for reusable storage keys.
40
- * @example Then I do not see local storage item "old_data"
40
+ * @example Then I pw do not see local storage item "old_data"
41
41
  */
42
42
  export declare function expectLocalStorageItemDoesNotExist(page: any, keyKey: string): Promise<void>;
43
43
  /**
44
44
  * Asserts that a session storage item exists and has the expected value.
45
45
  * Supports fixtures for reusable storage keys and values.
46
- * @example Then I see session storage item "temp_data" equals "abc123"
46
+ * @example Then I pw see session storage item "temp_data" equals "abc123"
47
47
  */
48
48
  export declare function expectSessionStorageItemEquals(page: any, keyKey: string, valueKey: string): Promise<void>;
49
49
  /**
50
50
  * Asserts that a session storage item exists and contains the expected substring.
51
51
  * Supports fixtures for reusable storage keys and values.
52
- * @example Then I see session storage item "temp_data" contains "abc"
52
+ * @example Then I pw see session storage item "temp_data" contains "abc"
53
53
  */
54
54
  export declare function expectSessionStorageItemContains(page: any, keyKey: string, valueKey: string): Promise<void>;
55
55
  /**
56
56
  * Asserts that a session storage item exists.
57
57
  * Supports fixtures for reusable storage keys.
58
- * @example Then I see session storage item "temp_token"
58
+ * @example Then I pw see session storage item "temp_token"
59
59
  */
60
60
  export declare function expectSessionStorageItem(page: any, keyKey: string): Promise<void>;
61
61
  /**
62
62
  * Asserts that a session storage item does not exist.
63
63
  * Supports fixtures for reusable storage keys.
64
- * @example Then I do not see session storage item "expired_token"
64
+ * @example Then I pw do not see session storage item "expired_token"
65
65
  */
66
66
  export declare function expectSessionStorageItemDoesNotExist(page: any, keyKey: string): Promise<void>;
67
67
  //# sourceMappingURL=storage.d.ts.map
@@ -20,7 +20,7 @@ const fixtures_1 = require("../utils/fixtures");
20
20
  /**
21
21
  * Asserts that a cookie exists and has the expected value.
22
22
  * Supports fixtures for reusable cookie names and values.
23
- * @example Then I see cookie "session_id" has value "abc123"
23
+ * @example Then I pw see cookie "session_id" has value "abc123"
24
24
  */
25
25
  async function expectCookieHasValue(page, cookieNameKey, valueKey) {
26
26
  const cookies = (0, fixtures_1.loadFixture)("cookies.json");
@@ -40,7 +40,7 @@ async function expectCookieHasValue(page, cookieNameKey, valueKey) {
40
40
  /**
41
41
  * Asserts that a cookie exists and contains the expected substring.
42
42
  * Supports fixtures for reusable cookie names and values.
43
- * @example Then I see cookie "session_id" contains value "abc"
43
+ * @example Then I pw see cookie "session_id" contains value "abc"
44
44
  */
45
45
  async function expectCookieContainsValue(page, cookieNameKey, valueKey) {
46
46
  const cookies = (0, fixtures_1.loadFixture)("cookies.json");
@@ -60,7 +60,7 @@ async function expectCookieContainsValue(page, cookieNameKey, valueKey) {
60
60
  /**
61
61
  * Asserts that a cookie does not exist.
62
62
  * Supports fixtures for reusable cookie names.
63
- * @example Then I do not see cookie "old_session"
63
+ * @example Then I pw do not see cookie "old_session"
64
64
  */
65
65
  async function expectCookieDoesNotExist(page, cookieNameKey) {
66
66
  const cookies = (0, fixtures_1.loadFixture)("cookies.json");
@@ -75,7 +75,7 @@ async function expectCookieDoesNotExist(page, cookieNameKey) {
75
75
  /**
76
76
  * Asserts that a local storage item exists and has the expected value.
77
77
  * Supports fixtures for reusable storage keys and values.
78
- * @example Then I see local storage item "user_prefs" equals "dark_theme"
78
+ * @example Then I pw see local storage item "user_prefs" equals "dark_theme"
79
79
  */
80
80
  async function expectLocalStorageItemEquals(page, keyKey, valueKey) {
81
81
  const keys = (0, fixtures_1.loadFixture)("keys.json");
@@ -94,7 +94,7 @@ async function expectLocalStorageItemEquals(page, keyKey, valueKey) {
94
94
  /**
95
95
  * Asserts that a local storage item exists and contains the expected substring.
96
96
  * Supports fixtures for reusable storage keys and values.
97
- * @example Then I see local storage item "user_prefs" contains "theme"
97
+ * @example Then I pw see local storage item "user_prefs" contains "theme"
98
98
  */
99
99
  async function expectLocalStorageItemContains(page, keyKey, valueKey) {
100
100
  const keys = (0, fixtures_1.loadFixture)("keys.json");
@@ -113,7 +113,7 @@ async function expectLocalStorageItemContains(page, keyKey, valueKey) {
113
113
  /**
114
114
  * Asserts that a local storage item exists.
115
115
  * Supports fixtures for reusable storage keys.
116
- * @example Then I see local storage item "user_id"
116
+ * @example Then I pw see local storage item "user_id"
117
117
  */
118
118
  async function expectLocalStorageItem(page, keyKey) {
119
119
  const keys = (0, fixtures_1.loadFixture)("keys.json");
@@ -127,7 +127,7 @@ async function expectLocalStorageItem(page, keyKey) {
127
127
  /**
128
128
  * Asserts that a local storage item does not exist.
129
129
  * Supports fixtures for reusable storage keys.
130
- * @example Then I do not see local storage item "old_data"
130
+ * @example Then I pw do not see local storage item "old_data"
131
131
  */
132
132
  async function expectLocalStorageItemDoesNotExist(page, keyKey) {
133
133
  const keys = (0, fixtures_1.loadFixture)("keys.json");
@@ -141,7 +141,7 @@ async function expectLocalStorageItemDoesNotExist(page, keyKey) {
141
141
  /**
142
142
  * Asserts that a session storage item exists and has the expected value.
143
143
  * Supports fixtures for reusable storage keys and values.
144
- * @example Then I see session storage item "temp_data" equals "abc123"
144
+ * @example Then I pw see session storage item "temp_data" equals "abc123"
145
145
  */
146
146
  async function expectSessionStorageItemEquals(page, keyKey, valueKey) {
147
147
  const keys = (0, fixtures_1.loadFixture)("keys.json");
@@ -160,7 +160,7 @@ async function expectSessionStorageItemEquals(page, keyKey, valueKey) {
160
160
  /**
161
161
  * Asserts that a session storage item exists and contains the expected substring.
162
162
  * Supports fixtures for reusable storage keys and values.
163
- * @example Then I see session storage item "temp_data" contains "abc"
163
+ * @example Then I pw see session storage item "temp_data" contains "abc"
164
164
  */
165
165
  async function expectSessionStorageItemContains(page, keyKey, valueKey) {
166
166
  const keys = (0, fixtures_1.loadFixture)("keys.json");
@@ -179,7 +179,7 @@ async function expectSessionStorageItemContains(page, keyKey, valueKey) {
179
179
  /**
180
180
  * Asserts that a session storage item exists.
181
181
  * Supports fixtures for reusable storage keys.
182
- * @example Then I see session storage item "temp_token"
182
+ * @example Then I pw see session storage item "temp_token"
183
183
  */
184
184
  async function expectSessionStorageItem(page, keyKey) {
185
185
  const keys = (0, fixtures_1.loadFixture)("keys.json");
@@ -193,7 +193,7 @@ async function expectSessionStorageItem(page, keyKey) {
193
193
  /**
194
194
  * Asserts that a session storage item does not exist.
195
195
  * Supports fixtures for reusable storage keys.
196
- * @example Then I do not see session storage item "expired_token"
196
+ * @example Then I pw do not see session storage item "expired_token"
197
197
  */
198
198
  async function expectSessionStorageItemDoesNotExist(page, keyKey) {
199
199
  const keys = (0, fixtures_1.loadFixture)("keys.json");