playwright-cucumber-ts-steps 1.3.2 → 1.3.4

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 (81) 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 +64 -4
  29. package/dist/backend/api/assertions.d.ts.map +1 -1
  30. package/dist/backend/api/assertions.js +205 -5
  31. package/dist/backend/api/mock.d.ts +3 -3
  32. package/dist/backend/api/mock.js +3 -3
  33. package/dist/backend/api/network.d.ts +6 -6
  34. package/dist/backend/api/network.js +6 -6
  35. package/dist/backend/api/requests.d.ts +4 -4
  36. package/dist/backend/api/requests.js +4 -4
  37. package/dist/backend/assertions/document.d.ts +10 -10
  38. package/dist/backend/assertions/document.js +10 -10
  39. package/dist/backend/assertions/elements.d.ts +28 -28
  40. package/dist/backend/assertions/elements.js +28 -28
  41. package/dist/backend/assertions/expectVisible.d.ts +1 -1
  42. package/dist/backend/assertions/expectVisible.js +1 -1
  43. package/dist/backend/assertions/forms.d.ts +7 -7
  44. package/dist/backend/assertions/forms.js +7 -7
  45. package/dist/backend/assertions/pageState.d.ts +4 -4
  46. package/dist/backend/assertions/pageState.js +4 -4
  47. package/dist/backend/assertions/storage.d.ts +11 -11
  48. package/dist/backend/assertions/storage.js +11 -11
  49. package/dist/backend/assertions/text.d.ts +17 -17
  50. package/dist/backend/assertions/text.js +17 -17
  51. package/dist/backend/assertions/visibility.d.ts +15 -15
  52. package/dist/backend/assertions/visibility.js +15 -15
  53. package/dist/backend/auth/index.d.ts +2 -2
  54. package/dist/backend/auth/index.js +2 -2
  55. package/dist/backend/db/steps.d.ts +9 -9
  56. package/dist/backend/db/steps.js +9 -9
  57. package/dist/backend/elements/alerts.d.ts +3 -3
  58. package/dist/backend/elements/alerts.js +3 -3
  59. package/dist/backend/elements/find.d.ts +15 -15
  60. package/dist/backend/elements/find.js +15 -15
  61. package/dist/backend/elements/forms.d.ts +4 -4
  62. package/dist/backend/elements/forms.js +4 -4
  63. package/dist/backend/elements/frames.d.ts +3 -3
  64. package/dist/backend/elements/frames.js +3 -3
  65. package/dist/backend/utils/faker.d.ts +2 -0
  66. package/dist/backend/utils/faker.d.ts.map +1 -0
  67. package/dist/backend/utils/faker.js +510 -0
  68. package/dist/backend/utils/fixtures.d.ts +44 -2
  69. package/dist/backend/utils/fixtures.d.ts.map +1 -1
  70. package/dist/backend/utils/fixtures.js +321 -5
  71. package/dist/backend/utils/resolver.d.ts +13 -0
  72. package/dist/backend/utils/resolver.d.ts.map +1 -1
  73. package/dist/backend/utils/resolver.js +55 -0
  74. package/dist/core/runner.d.ts +1 -0
  75. package/dist/core/runner.d.ts.map +1 -1
  76. package/dist/core/runner.js +1 -0
  77. package/dist/index.d.ts +1 -0
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +4 -1
  80. package/dist/metadata.json +49 -1
  81. package/package.json +4 -2
@@ -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");
@@ -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