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
@@ -4,7 +4,7 @@
4
4
  * @param page - The Playwright page object
5
5
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
6
6
  * @param textKey - The text key (can be a fixture key or raw text)
7
- * @example Then I see exact element text "Welcome Home"
7
+ * @example Then I pw see exact element text "Welcome Home"
8
8
  */
9
9
  export declare function expectElementToHaveExactText(page: any, selectorKey: string, textKey: string): Promise<void>;
10
10
  /**
@@ -12,7 +12,7 @@ export declare function expectElementToHaveExactText(page: any, selectorKey: str
12
12
  * Supports fixtures for reusable selectors and text values.
13
13
  * @param page - The Playwright page object
14
14
  * @param textKey - The text key (can be a fixture key or raw text)
15
- * @example Then I see text "Welcome" (will match "Welcome Home" or "Welcome!")
15
+ * @example Then I pw see text "Welcome" (will match "Welcome Home" or "Welcome!")
16
16
  *
17
17
  * Global Visibility Check: Finds text anywhere on the page without needing a selector.
18
18
  */
@@ -22,7 +22,7 @@ export declare function expectGlobalTextVisible(page: any, textKey: string): Pro
22
22
  * Supports fixtures for reusable selectors and text values.
23
23
  * @param page - The Playwright page object
24
24
  * @param textKey - The text key (can be a fixture key or raw text)
25
- * @example Then I do not see text "error"
25
+ * @example Then I pw do not see text "error"
26
26
  */
27
27
  export declare function expectGlobalTextNotVisible(page: any, textKey: string): Promise<void>;
28
28
  /**
@@ -31,7 +31,7 @@ export declare function expectGlobalTextNotVisible(page: any, textKey: string):
31
31
  * @param page - The Playwright page object
32
32
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
33
33
  * @param valueKey - The value key (can be a fixture key or raw value)
34
- * @example Then I see exact value "john_doe"
34
+ * @example Then I pw see exact value "john_doe"
35
35
  */
36
36
  export declare function expectElementToHaveExactValue(page: any, selectorKey: string, valueKey: string): Promise<void>;
37
37
  /**
@@ -40,7 +40,7 @@ export declare function expectElementToHaveExactValue(page: any, selectorKey: st
40
40
  * @param page - The Playwright page object
41
41
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
42
42
  * @param valueKey - The value key (can be a fixture key or raw value)
43
- * @example Then I do not see exact value "john_doe"
43
+ * @example Then I pw do not see exact value "john_doe"
44
44
  */
45
45
  export declare function expectElementToNotHaveExactValue(page: any, selectorKey: string, valueKey: string): Promise<void>;
46
46
  /**
@@ -50,7 +50,7 @@ export declare function expectElementToNotHaveExactValue(page: any, selectorKey:
50
50
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
51
51
  * @param attrKey - The attribute key (can be a fixture key or raw attribute name)
52
52
  * @param valueKey - The value key (can be a fixture key or raw value)
53
- * @example Then I see exact attribute "href" with value "/terms-and-conditions"
53
+ * @example Then I pw see exact attribute "href" with value "/terms-and-conditions"
54
54
  */
55
55
  export declare function expectElementToHaveExactAttribute(page: any, selectorKey: string, attrKey: string, valueKey: string): Promise<void>;
56
56
  /**
@@ -60,57 +60,57 @@ export declare function expectElementToHaveExactAttribute(page: any, selectorKey
60
60
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
61
61
  * @param attrKey - The attribute key (can be a fixture key or raw attribute name)
62
62
  * @param valueKey - The value key (can be a fixture key or raw value)
63
- * @example Then I do not see exact attribute "href" with value "/wrong-url"
63
+ * @example Then I pw do not see exact attribute "href" with value "/wrong-url"
64
64
  */
65
65
  export declare function expectElementToNotHaveExactAttribute(page: any, selectorKey: string, attrKey: string, valueKey: string): Promise<void>;
66
66
  /**
67
67
  * Asserts that a button with specific text is visible.
68
68
  * @param page - The Playwright page object
69
69
  * @param textKey - The text key (can be a fixture key or raw text)
70
- * @example Then I see button text "Submit"
71
- * @example Then I see button text "buttons.saveKey" (fixture)
70
+ * @example Then I pw see button text "Submit"
71
+ * @example Then I pw see button text "buttons.saveKey" (fixture)
72
72
  */
73
73
  export declare function iSeeButtonText(page: any, textKey: string): Promise<void>;
74
74
  /**
75
75
  * Asserts that a heading with specific text is visible.
76
76
  * @param page - The Playwright page object
77
77
  * @param textKey - The text key (can be a fixture key or raw text)
78
- * @example Then I see heading text "Welcome"
78
+ * @example Then I pw see heading text "Welcome"
79
79
  */
80
80
  export declare function iSeeHeadingText(page: any, textKey: string): Promise<void>;
81
81
  /**
82
82
  * Asserts that a link with specific text is visible.
83
- * @example Then I see link text "Read More"
83
+ * @example Then I pw see link text "Read More"
84
84
  */
85
85
  export declare function iSeeLinkText(page: any, textKey: string): Promise<void>;
86
86
  /**
87
87
  * Asserts that a label with specific text is visible.
88
- * @example Then I see label text "Email Address"
88
+ * @example Then I pw see label text "Email Address"
89
89
  */
90
90
  export declare function iSeeLabelText(page: any, textKey: string): Promise<void>;
91
91
  /**
92
92
  * Asserts that a button with specific text is NOT visible or does not exist.
93
- * @example Then I do not see button text "Delete"
93
+ * @example Then I pw do not see button text "Delete"
94
94
  */
95
95
  export declare function iDoNotSeeButtonText(page: any, textKey: string): Promise<void>;
96
96
  /**
97
97
  * Asserts that a heading with specific text is NOT visible or does not exist.
98
- * @example Then I do not see heading text "Old Title"
98
+ * @example Then I pw do not see heading text "Old Title"
99
99
  */
100
100
  export declare function iDoNotSeeHeadingText(page: any, textKey: string): Promise<void>;
101
101
  /**
102
102
  * Asserts that a link with specific text is NOT visible or does not exist.
103
- * @example Then I do not see link text "Expired Offer"
103
+ * @example Then I pw do not see link text "Expired Offer"
104
104
  */
105
105
  export declare function iDoNotSeeLinkText(page: any, textKey: string): Promise<void>;
106
106
  /**
107
107
  * Asserts that a label with specific text is NOT visible or does not exist.
108
- * @example Then I do not see label text "Secret Info"
108
+ * @example Then I pw do not see label text "Secret Info"
109
109
  */
110
110
  export declare function iDoNotSeeLabelText(page: any, textKey: string): Promise<void>;
111
111
  /**
112
112
  * Gets an element by selector and asserts it is hidden.
113
- * @example When I get element by selector "div.loader" to be hidden
113
+ * @example When I pw get element by selector "div.loader" to be hidden
114
114
  */
115
115
  export declare function getElementBySelectorToBeHidden(page: any, selectorKey: string): Promise<void>;
116
116
  //# sourceMappingURL=text.d.ts.map
@@ -31,7 +31,7 @@ const resolver_1 = require("../utils/resolver");
31
31
  * @param page - The Playwright page object
32
32
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
33
33
  * @param textKey - The text key (can be a fixture key or raw text)
34
- * @example Then I see exact element text "Welcome Home"
34
+ * @example Then I pw see exact element text "Welcome Home"
35
35
  */
36
36
  async function expectElementToHaveExactText(page, selectorKey, textKey) {
37
37
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -46,7 +46,7 @@ async function expectElementToHaveExactText(page, selectorKey, textKey) {
46
46
  * Supports fixtures for reusable selectors and text values.
47
47
  * @param page - The Playwright page object
48
48
  * @param textKey - The text key (can be a fixture key or raw text)
49
- * @example Then I see text "Welcome" (will match "Welcome Home" or "Welcome!")
49
+ * @example Then I pw see text "Welcome" (will match "Welcome Home" or "Welcome!")
50
50
  *
51
51
  * Global Visibility Check: Finds text anywhere on the page without needing a selector.
52
52
  */
@@ -61,7 +61,7 @@ async function expectGlobalTextVisible(page, textKey) {
61
61
  * Supports fixtures for reusable selectors and text values.
62
62
  * @param page - The Playwright page object
63
63
  * @param textKey - The text key (can be a fixture key or raw text)
64
- * @example Then I do not see text "error"
64
+ * @example Then I pw do not see text "error"
65
65
  */
66
66
  async function expectGlobalTextNotVisible(page, textKey) {
67
67
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -74,7 +74,7 @@ async function expectGlobalTextNotVisible(page, textKey) {
74
74
  * @param page - The Playwright page object
75
75
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
76
76
  * @param valueKey - The value key (can be a fixture key or raw value)
77
- * @example Then I see exact value "john_doe"
77
+ * @example Then I pw see exact value "john_doe"
78
78
  */
79
79
  async function expectElementToHaveExactValue(page, selectorKey, valueKey) {
80
80
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -90,7 +90,7 @@ async function expectElementToHaveExactValue(page, selectorKey, valueKey) {
90
90
  * @param page - The Playwright page object
91
91
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
92
92
  * @param valueKey - The value key (can be a fixture key or raw value)
93
- * @example Then I do not see exact value "john_doe"
93
+ * @example Then I pw do not see exact value "john_doe"
94
94
  */
95
95
  async function expectElementToNotHaveExactValue(page, selectorKey, valueKey) {
96
96
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -110,7 +110,7 @@ async function expectElementToNotHaveExactValue(page, selectorKey, valueKey) {
110
110
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
111
111
  * @param attrKey - The attribute key (can be a fixture key or raw attribute name)
112
112
  * @param valueKey - The value key (can be a fixture key or raw value)
113
- * @example Then I see exact attribute "href" with value "/terms-and-conditions"
113
+ * @example Then I pw see exact attribute "href" with value "/terms-and-conditions"
114
114
  */
115
115
  async function expectElementToHaveExactAttribute(page, selectorKey, attrKey, valueKey) {
116
116
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -129,7 +129,7 @@ async function expectElementToHaveExactAttribute(page, selectorKey, attrKey, val
129
129
  * @param selectorKey - The selector key (can be a fixture key or raw CSS selector)
130
130
  * @param attrKey - The attribute key (can be a fixture key or raw attribute name)
131
131
  * @param valueKey - The value key (can be a fixture key or raw value)
132
- * @example Then I do not see exact attribute "href" with value "/wrong-url"
132
+ * @example Then I pw do not see exact attribute "href" with value "/wrong-url"
133
133
  */
134
134
  async function expectElementToNotHaveExactAttribute(page, selectorKey, attrKey, valueKey) {
135
135
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -148,8 +148,8 @@ async function expectElementToNotHaveExactAttribute(page, selectorKey, attrKey,
148
148
  * Asserts that a button with specific text is visible.
149
149
  * @param page - The Playwright page object
150
150
  * @param textKey - The text key (can be a fixture key or raw text)
151
- * @example Then I see button text "Submit"
152
- * @example Then I see button text "buttons.saveKey" (fixture)
151
+ * @example Then I pw see button text "Submit"
152
+ * @example Then I pw see button text "buttons.saveKey" (fixture)
153
153
  */
154
154
  async function iSeeButtonText(page, textKey) {
155
155
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -160,7 +160,7 @@ async function iSeeButtonText(page, textKey) {
160
160
  * Asserts that a heading with specific text is visible.
161
161
  * @param page - The Playwright page object
162
162
  * @param textKey - The text key (can be a fixture key or raw text)
163
- * @example Then I see heading text "Welcome"
163
+ * @example Then I pw see heading text "Welcome"
164
164
  */
165
165
  async function iSeeHeadingText(page, textKey) {
166
166
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -169,7 +169,7 @@ async function iSeeHeadingText(page, textKey) {
169
169
  }
170
170
  /**
171
171
  * Asserts that a link with specific text is visible.
172
- * @example Then I see link text "Read More"
172
+ * @example Then I pw see link text "Read More"
173
173
  */
174
174
  async function iSeeLinkText(page, textKey) {
175
175
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -178,7 +178,7 @@ async function iSeeLinkText(page, textKey) {
178
178
  }
179
179
  /**
180
180
  * Asserts that a label with specific text is visible.
181
- * @example Then I see label text "Email Address"
181
+ * @example Then I pw see label text "Email Address"
182
182
  */
183
183
  async function iSeeLabelText(page, textKey) {
184
184
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -187,7 +187,7 @@ async function iSeeLabelText(page, textKey) {
187
187
  }
188
188
  /**
189
189
  * Asserts that a button with specific text is NOT visible or does not exist.
190
- * @example Then I do not see button text "Delete"
190
+ * @example Then I pw do not see button text "Delete"
191
191
  */
192
192
  async function iDoNotSeeButtonText(page, textKey) {
193
193
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -196,7 +196,7 @@ async function iDoNotSeeButtonText(page, textKey) {
196
196
  }
197
197
  /**
198
198
  * Asserts that a heading with specific text is NOT visible or does not exist.
199
- * @example Then I do not see heading text "Old Title"
199
+ * @example Then I pw do not see heading text "Old Title"
200
200
  */
201
201
  async function iDoNotSeeHeadingText(page, textKey) {
202
202
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -205,7 +205,7 @@ async function iDoNotSeeHeadingText(page, textKey) {
205
205
  }
206
206
  /**
207
207
  * Asserts that a link with specific text is NOT visible or does not exist.
208
- * @example Then I do not see link text "Expired Offer"
208
+ * @example Then I pw do not see link text "Expired Offer"
209
209
  */
210
210
  async function iDoNotSeeLinkText(page, textKey) {
211
211
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -214,7 +214,7 @@ async function iDoNotSeeLinkText(page, textKey) {
214
214
  }
215
215
  /**
216
216
  * Asserts that a label with specific text is NOT visible or does not exist.
217
- * @example Then I do not see label text "Secret Info"
217
+ * @example Then I pw do not see label text "Secret Info"
218
218
  */
219
219
  async function iDoNotSeeLabelText(page, textKey) {
220
220
  const text = (0, resolver_1.resolveParam)(textKey, "texts.json");
@@ -223,7 +223,7 @@ async function iDoNotSeeLabelText(page, textKey) {
223
223
  }
224
224
  /**
225
225
  * Gets an element by selector and asserts it is hidden.
226
- * @example When I get element by selector "div.loader" to be hidden
226
+ * @example When I pw get element by selector "div.loader" to be hidden
227
227
  */
228
228
  async function getElementBySelectorToBeHidden(page, selectorKey) {
229
229
  const selector = (0, resolver_1.resolveParam)(selectorKey, "selectors.json");
@@ -1,86 +1,86 @@
1
1
  /**
2
2
  * Asserts that the currently stored (active) element is visible in the viewport.
3
- * @example Then I expect element to be visible
3
+ * @example Then I pw expect element to be visible
4
4
  */
5
5
  export declare function expectActiveVisible(page: any): Promise<void>;
6
6
  /**
7
7
  * Asserts that an element with a given selector or description is visible in the viewport.
8
8
  * Supports fixtures for reusable selectors.
9
- * @example Then I expect "login.submitButton" to be visible
9
+ * @example Then I pw expect "login.submitButton" to be visible
10
10
  */
11
11
  export declare function expectStringVisible(page: any, selectorKey: string): Promise<void>;
12
12
  /**
13
13
  * Asserts that the currently stored (active) element is hidden or detached from the DOM.
14
- * @example Then I expect element to be hidden
14
+ * @example Then I pw expect element to be hidden
15
15
  */
16
16
  export declare function expectActiveHidden(page: any): Promise<void>;
17
17
  /**
18
18
  * Asserts that the currently stored (active) element is enabled (not disabled).
19
- * @example Then I expect element to be enabled
19
+ * @example Then I pw expect element to be enabled
20
20
  */
21
21
  export declare function expectActiveEnabled(page: any): Promise<void>;
22
22
  /**
23
23
  * Asserts that the currently stored (active) element is disabled.
24
- * @example Then I expect element to be disabled
24
+ * @example Then I pw expect element to be disabled
25
25
  */
26
26
  export declare function expectActiveDisabled(page: any): Promise<void>;
27
27
  /**
28
28
  * Asserts that the currently stored (active) element has the exact text specified.
29
29
  * Supports fixtures for reusable texts.
30
- * @example Then I expect element to have text "login.submitButtonText"
30
+ * @example Then I pw expect element to have text "login.submitButtonText"
31
31
  */
32
32
  export declare function expectActiveText(page: any, textKey: string): Promise<void>;
33
33
  /**
34
34
  * Asserts that the currently stored (active) element contains the specified partial text.
35
35
  * Supports fixtures for reusable texts.
36
- * @example Then I expect element to contain text "login.partialText"
36
+ * @example Then I pw expect element to contain text "login.partialText"
37
37
  */
38
38
  export declare function expectActiveContainText(page: any, textKey: string): Promise<void>;
39
39
  /**
40
40
  * Asserts that the currently stored (active) element (input/select) has a specific value.
41
41
  * Supports aliases (e.g., `@orderId`) to compare against stored variables.
42
42
  * Supports fixtures for reusable values.
43
- * @example Then I expect element to have value "@savedUserEmail"
43
+ * @example Then I pw expect element to have value "@savedUserEmail"
44
44
  */
45
45
  export declare function expectActiveValue(page: any, valueKey: string): Promise<void>;
46
46
  /**
47
47
  * Asserts that the currently stored (active) element possesses a specific attribute.
48
48
  * Supports fixtures for reusable attributes.
49
- * @example Then I expect element to have attribute "attributes.required"
49
+ * @example Then I pw expect element to have attribute "attributes.required"
50
50
  */
51
51
  export declare function expectActiveAttribute(page: any, attrKey: string): Promise<void>;
52
52
  /**
53
53
  * Asserts that the currently stored (active) element has an attribute with a specific value.
54
54
  * Supports fixtures for reusable attributes and values.
55
- * @example Then I expect element to have attribute "attributes.type" with value "input.passwordType"
55
+ * @example Then I pw expect element to have attribute "attributes.type" with value "input.passwordType"
56
56
  */
57
57
  export declare function expectActiveAttributeValue(page: any, attrKey: string, valueKey: string): Promise<void>;
58
58
  /**
59
59
  * Performs a visual comparison of the entire page against a baseline screenshot.
60
- * @example Then I expect the page screenshot to match "landing-page.png"
60
+ * @example Then I pw expect the page screenshot to match "landing-page.png"
61
61
  */
62
62
  export declare function expectPageScreenshotMatch(page: any, filename: string): Promise<void>;
63
63
  /**
64
64
  * Performs a visual comparison of the active element against a baseline screenshot.
65
- * @example Then I expect the element screenshot to match "login-button.png"
65
+ * @example Then I pw expect the element screenshot to match "login-button.png"
66
66
  */
67
67
  export declare function expectElementScreenshotMatch(page: any, filename: string): Promise<void>;
68
68
  /**
69
69
  * Asserts that an element is not visible.
70
70
  * Supports fixtures for reusable selectors.
71
- * @example Then I expect "modal.overlay" to be not visible
71
+ * @example Then I pw expect "modal.overlay" to be not visible
72
72
  */
73
73
  export declare function expectElementToNotBeVisible(page: any, selectorKey: string): Promise<void>;
74
74
  /**
75
75
  * Asserts that an element exists in the DOM.
76
76
  * Supports fixtures for reusable selectors.
77
- * @example Then I expect element "header.logo" exists
77
+ * @example Then I pw expect element "header.logo" exists
78
78
  */
79
79
  export declare function expectElementExists(page: any, selectorKey: string): Promise<void>;
80
80
  /**
81
81
  * Asserts that an element does not exist in the DOM.
82
82
  * Supports fixtures for reusable selectors.
83
- * @example Then I expect element "modal.deleted" does not exist
83
+ * @example Then I pw expect element "modal.deleted" does not exist
84
84
  */
85
85
  export declare function expectElementDoesNotExist(page: any, selectorKey: string): Promise<void>;
86
86
  //# sourceMappingURL=visibility.d.ts.map
@@ -25,7 +25,7 @@ const state_1 = require("../utils/state");
25
25
  // ==================================================
26
26
  /**
27
27
  * Asserts that the currently stored (active) element is visible in the viewport.
28
- * @example Then I expect element to be visible
28
+ * @example Then I pw expect element to be visible
29
29
  */
30
30
  async function expectActiveVisible(page) {
31
31
  const element = (0, state_1.getActiveElement)(page);
@@ -35,7 +35,7 @@ async function expectActiveVisible(page) {
35
35
  /**
36
36
  * Asserts that an element with a given selector or description is visible in the viewport.
37
37
  * Supports fixtures for reusable selectors.
38
- * @example Then I expect "login.submitButton" to be visible
38
+ * @example Then I pw expect "login.submitButton" to be visible
39
39
  */
40
40
  async function expectStringVisible(page, selectorKey) {
41
41
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -46,7 +46,7 @@ async function expectStringVisible(page, selectorKey) {
46
46
  }
47
47
  /**
48
48
  * Asserts that the currently stored (active) element is hidden or detached from the DOM.
49
- * @example Then I expect element to be hidden
49
+ * @example Then I pw expect element to be hidden
50
50
  */
51
51
  async function expectActiveHidden(page) {
52
52
  const element = (0, state_1.getActiveElement)(page);
@@ -55,7 +55,7 @@ async function expectActiveHidden(page) {
55
55
  }
56
56
  /**
57
57
  * Asserts that the currently stored (active) element is enabled (not disabled).
58
- * @example Then I expect element to be enabled
58
+ * @example Then I pw expect element to be enabled
59
59
  */
60
60
  async function expectActiveEnabled(page) {
61
61
  const element = (0, state_1.getActiveElement)(page);
@@ -64,7 +64,7 @@ async function expectActiveEnabled(page) {
64
64
  }
65
65
  /**
66
66
  * Asserts that the currently stored (active) element is disabled.
67
- * @example Then I expect element to be disabled
67
+ * @example Then I pw expect element to be disabled
68
68
  */
69
69
  async function expectActiveDisabled(page) {
70
70
  const element = (0, state_1.getActiveElement)(page);
@@ -74,7 +74,7 @@ async function expectActiveDisabled(page) {
74
74
  /**
75
75
  * Asserts that the currently stored (active) element has the exact text specified.
76
76
  * Supports fixtures for reusable texts.
77
- * @example Then I expect element to have text "login.submitButtonText"
77
+ * @example Then I pw expect element to have text "login.submitButtonText"
78
78
  */
79
79
  async function expectActiveText(page, textKey) {
80
80
  const texts = (0, fixtures_1.loadFixture)("texts.json");
@@ -86,7 +86,7 @@ async function expectActiveText(page, textKey) {
86
86
  /**
87
87
  * Asserts that the currently stored (active) element contains the specified partial text.
88
88
  * Supports fixtures for reusable texts.
89
- * @example Then I expect element to contain text "login.partialText"
89
+ * @example Then I pw expect element to contain text "login.partialText"
90
90
  */
91
91
  async function expectActiveContainText(page, textKey) {
92
92
  const texts = (0, fixtures_1.loadFixture)("texts.json");
@@ -99,7 +99,7 @@ async function expectActiveContainText(page, textKey) {
99
99
  * Asserts that the currently stored (active) element (input/select) has a specific value.
100
100
  * Supports aliases (e.g., `@orderId`) to compare against stored variables.
101
101
  * Supports fixtures for reusable values.
102
- * @example Then I expect element to have value "@savedUserEmail"
102
+ * @example Then I pw expect element to have value "@savedUserEmail"
103
103
  */
104
104
  async function expectActiveValue(page, valueKey) {
105
105
  let resolvedValue = valueKey;
@@ -121,7 +121,7 @@ async function expectActiveValue(page, valueKey) {
121
121
  /**
122
122
  * Asserts that the currently stored (active) element possesses a specific attribute.
123
123
  * Supports fixtures for reusable attributes.
124
- * @example Then I expect element to have attribute "attributes.required"
124
+ * @example Then I pw expect element to have attribute "attributes.required"
125
125
  */
126
126
  async function expectActiveAttribute(page, attrKey) {
127
127
  const attributes = (0, fixtures_1.loadFixture)("attributes.json");
@@ -133,7 +133,7 @@ async function expectActiveAttribute(page, attrKey) {
133
133
  /**
134
134
  * Asserts that the currently stored (active) element has an attribute with a specific value.
135
135
  * Supports fixtures for reusable attributes and values.
136
- * @example Then I expect element to have attribute "attributes.type" with value "input.passwordType"
136
+ * @example Then I pw expect element to have attribute "attributes.type" with value "input.passwordType"
137
137
  */
138
138
  async function expectActiveAttributeValue(page, attrKey, valueKey) {
139
139
  const attributes = (0, fixtures_1.loadFixture)("attributes.json");
@@ -146,7 +146,7 @@ async function expectActiveAttributeValue(page, attrKey, valueKey) {
146
146
  }
147
147
  /**
148
148
  * Performs a visual comparison of the entire page against a baseline screenshot.
149
- * @example Then I expect the page screenshot to match "landing-page.png"
149
+ * @example Then I pw expect the page screenshot to match "landing-page.png"
150
150
  */
151
151
  async function expectPageScreenshotMatch(page, filename) {
152
152
  await (0, test_1.expect)(page).toHaveScreenshot(filename);
@@ -154,7 +154,7 @@ async function expectPageScreenshotMatch(page, filename) {
154
154
  }
155
155
  /**
156
156
  * Performs a visual comparison of the active element against a baseline screenshot.
157
- * @example Then I expect the element screenshot to match "login-button.png"
157
+ * @example Then I pw expect the element screenshot to match "login-button.png"
158
158
  */
159
159
  async function expectElementScreenshotMatch(page, filename) {
160
160
  const element = (0, state_1.getActiveElement)(page);
@@ -165,7 +165,7 @@ async function expectElementScreenshotMatch(page, filename) {
165
165
  /**
166
166
  * Asserts that an element is not visible.
167
167
  * Supports fixtures for reusable selectors.
168
- * @example Then I expect "modal.overlay" to be not visible
168
+ * @example Then I pw expect "modal.overlay" to be not visible
169
169
  */
170
170
  async function expectElementToNotBeVisible(page, selectorKey) {
171
171
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -176,7 +176,7 @@ async function expectElementToNotBeVisible(page, selectorKey) {
176
176
  /**
177
177
  * Asserts that an element exists in the DOM.
178
178
  * Supports fixtures for reusable selectors.
179
- * @example Then I expect element "header.logo" exists
179
+ * @example Then I pw expect element "header.logo" exists
180
180
  */
181
181
  async function expectElementExists(page, selectorKey) {
182
182
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -190,7 +190,7 @@ async function expectElementExists(page, selectorKey) {
190
190
  /**
191
191
  * Asserts that an element does not exist in the DOM.
192
192
  * Supports fixtures for reusable selectors.
193
- * @example Then I expect element "modal.deleted" does not exist
193
+ * @example Then I pw expect element "modal.deleted" does not exist
194
194
  */
195
195
  async function expectElementDoesNotExist(page, selectorKey) {
196
196
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -2,14 +2,14 @@
2
2
  * Saves the current browser context's storage state (cookies, localStorage, etc.) to a file.
3
3
  * Supports fixtures for reusable auth state filenames.
4
4
  * Use this after a successful login to persist the authenticated session.
5
- * @example And I save the browser state to "adminState"
5
+ * @example And I pw save the browser state to "adminState"
6
6
  */
7
7
  export declare function saveBrowserState(page: any, filenameKey: string): Promise<void>;
8
8
  /**
9
9
  * Loads a previously saved browser context state (cookies, localStorage, etc.) from a file.
10
10
  * Supports fixtures for reusable auth state filenames.
11
11
  * Use this at the start of other scenarios to restore an authenticated session.
12
- * @example Given I load the browser state from "adminState"
12
+ * @example Given I pw load the browser state from "adminState"
13
13
  */
14
14
  export declare function loadBrowserState(page: any, filenameKey: string): Promise<void>;
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -47,7 +47,7 @@ const fixtures_1 = require("../utils/fixtures");
47
47
  * Saves the current browser context's storage state (cookies, localStorage, etc.) to a file.
48
48
  * Supports fixtures for reusable auth state filenames.
49
49
  * Use this after a successful login to persist the authenticated session.
50
- * @example And I save the browser state to "adminState"
50
+ * @example And I pw save the browser state to "adminState"
51
51
  */
52
52
  async function saveBrowserState(page, filenameKey) {
53
53
  const files = (0, fixtures_1.loadFixture)("files.json");
@@ -65,7 +65,7 @@ async function saveBrowserState(page, filenameKey) {
65
65
  * Loads a previously saved browser context state (cookies, localStorage, etc.) from a file.
66
66
  * Supports fixtures for reusable auth state filenames.
67
67
  * Use this at the start of other scenarios to restore an authenticated session.
68
- * @example Given I load the browser state from "adminState"
68
+ * @example Given I pw load the browser state from "adminState"
69
69
  */
70
70
  async function loadBrowserState(page, filenameKey) {
71
71
  const files = (0, fixtures_1.loadFixture)("files.json");
@@ -1,24 +1,24 @@
1
1
  /**
2
2
  * Executes a raw SQL query against the configured database.
3
3
  * Supports fixtures for reusable queries.
4
- * @example When I run the database query "selectUsersByEmail"
4
+ * @example When I pw run the database query "selectUsersByEmail"
5
5
  */
6
6
  export declare function runDbQuery(_page: any, queryKey: string): Promise<void>;
7
7
  /**
8
8
  * Asserts that the last executed database query returned a specific number of records.
9
- * @example Then I expect the database to return 1 record
9
+ * @example Then I pw expect the database to return 1 record
10
10
  */
11
11
  export declare function expectDbRecordCount(page: any, count: number): Promise<void>;
12
12
  /**
13
13
  * Asserts that the database query returned no records (empty result set).
14
- * @example Then I expect the database to return no records
14
+ * @example Then I pw expect the database to return no records
15
15
  */
16
16
  export declare function expectDbNoRecords(_page: any): Promise<void>;
17
17
  /**
18
18
  * Asserts that the first record of the last database result set contains specific column values.
19
19
  * Performs a loose equality check (converts values to strings) to handle type mismatches.
20
20
  * Supports fixtures for reusable table data.
21
- * @example Then I expect the first database record to contain
21
+ * @example Then I pw expect the first database record to contain
22
22
  * | username | admin |
23
23
  * | is_active| 1 |
24
24
  * | role | superuser |
@@ -27,7 +27,7 @@ export declare function expectFirstDbRecordToContain(page: any, tableData: strin
27
27
  /**
28
28
  * Asserts that a specific row (by index) contains expected column values.
29
29
  * Supports fixtures for reusable table data.
30
- * @example Then I expect database row 2 to contain
30
+ * @example Then I pw expect database row 2 to contain
31
31
  * | username | bob |
32
32
  * | status | active |
33
33
  */
@@ -36,27 +36,27 @@ export declare function expectDbRowToContain(page: any, index: number, tableData
36
36
  * Asserts that all records in the result set contain specific column values.
37
37
  * Useful for verifying uniform data across multiple rows.
38
38
  * Supports fixtures for reusable table data.
39
- * @example Then I expect all database records to contain
39
+ * @example Then I pw expect all database records to contain
40
40
  * | status | active |
41
41
  */
42
42
  export declare function expectAllDbRecordsToContain(page: any, tableData: string[][]): Promise<void>;
43
43
  /**
44
44
  * Asserts that a specific column exists in the database result set.
45
45
  * Supports fixtures for reusable column names.
46
- * @example Then I expect database column "email" to exist
46
+ * @example Then I pw expect database column "email" to exist
47
47
  */
48
48
  export declare function expectDbColumnExists(page: any, columnNameKey: string): Promise<void>;
49
49
  /**
50
50
  * Asserts that a specific column in any row contains the expected value.
51
51
  * Searches through all rows to find a match.
52
52
  * Supports fixtures for reusable column names and values.
53
- * @example Then I expect database column "email" to contain "test@example.com"
53
+ * @example Then I pw expect database column "email" to contain "test@example.com"
54
54
  */
55
55
  export declare function expectDbColumnContains(page: any, columnNameKey: string, expectedValueKey: string): Promise<void>;
56
56
  /**
57
57
  * Asserts the data type of a column's value in the first record.
58
58
  * Supports fixtures for reusable column names and types.
59
- * @example Then I expect database column "age" to be of type "number"
59
+ * @example Then I pw expect database column "age" to be of type "number"
60
60
  */
61
61
  export declare function expectDbColumnType(page: any, columnNameKey: string, dataTypeKey: string): Promise<void>;
62
62
  //# sourceMappingURL=steps.d.ts.map