@o3r/testing 13.0.0-next.1 → 13.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +53 -64
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +4 -1
- package/schematics/ng-add/index.js.map +1 -1
- package/tools/index.d.ts +0 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +0 -1
- package/tools/index.js.map +1 -1
- package/tools/path-replacement/path-replacement.d.ts +2 -2
- package/tools/path-replacement/path-replacement.d.ts.map +1 -1
- package/tools/path-replacement/path-replacement.js +2 -1
- package/tools/path-replacement/path-replacement.js.map +1 -1
- package/core/protractor/angular-materials/autocomplete-material.d.ts +0 -13
- package/core/protractor/angular-materials/autocomplete-material.d.ts.map +0 -1
- package/core/protractor/angular-materials/autocomplete-material.js +0 -37
- package/core/protractor/angular-materials/autocomplete-material.js.map +0 -1
- package/core/protractor/angular-materials/index.d.ts +0 -3
- package/core/protractor/angular-materials/index.d.ts.map +0 -1
- package/core/protractor/angular-materials/index.js +0 -6
- package/core/protractor/angular-materials/index.js.map +0 -1
- package/core/protractor/angular-materials/select-material.d.ts +0 -19
- package/core/protractor/angular-materials/select-material.d.ts.map +0 -1
- package/core/protractor/angular-materials/select-material.js +0 -113
- package/core/protractor/angular-materials/select-material.js.map +0 -1
- package/core/protractor/component-fixture.d.ts +0 -126
- package/core/protractor/component-fixture.d.ts.map +0 -1
- package/core/protractor/component-fixture.js +0 -274
- package/core/protractor/component-fixture.js.map +0 -1
- package/core/protractor/element.d.ts +0 -38
- package/core/protractor/element.d.ts.map +0 -1
- package/core/protractor/element.js +0 -145
- package/core/protractor/element.js.map +0 -1
- package/core/protractor/elements/checkbox-element.d.ts +0 -17
- package/core/protractor/elements/checkbox-element.d.ts.map +0 -1
- package/core/protractor/elements/checkbox-element.js +0 -54
- package/core/protractor/elements/checkbox-element.js.map +0 -1
- package/core/protractor/elements/index.d.ts +0 -4
- package/core/protractor/elements/index.d.ts.map +0 -1
- package/core/protractor/elements/index.js +0 -7
- package/core/protractor/elements/index.js.map +0 -1
- package/core/protractor/elements/radio-element.d.ts +0 -17
- package/core/protractor/elements/radio-element.d.ts.map +0 -1
- package/core/protractor/elements/radio-element.js +0 -56
- package/core/protractor/elements/radio-element.js.map +0 -1
- package/core/protractor/elements/select-element.d.ts +0 -15
- package/core/protractor/elements/select-element.d.ts.map +0 -1
- package/core/protractor/elements/select-element.js +0 -49
- package/core/protractor/elements/select-element.js.map +0 -1
- package/core/protractor/group.d.ts +0 -21
- package/core/protractor/group.d.ts.map +0 -1
- package/core/protractor/group.js +0 -27
- package/core/protractor/group.js.map +0 -1
- package/core/protractor/groups/index.d.ts +0 -2
- package/core/protractor/groups/index.d.ts.map +0 -1
- package/core/protractor/groups/index.js +0 -5
- package/core/protractor/groups/index.js.map +0 -1
- package/core/protractor/groups/radio-group.d.ts +0 -17
- package/core/protractor/groups/radio-group.d.ts.map +0 -1
- package/core/protractor/groups/radio-group.js +0 -80
- package/core/protractor/groups/radio-group.js.map +0 -1
- package/core/protractor/index.d.ts +0 -9
- package/core/protractor/index.d.ts.map +0 -1
- package/core/protractor/index.js +0 -11
- package/core/protractor/index.js.map +0 -1
- package/core/protractor/page-fixture.d.ts +0 -13
- package/core/protractor/page-fixture.d.ts.map +0 -1
- package/core/protractor/page-fixture.js +0 -23
- package/core/protractor/page-fixture.js.map +0 -1
- package/core/protractor/utils.d.ts +0 -8
- package/core/protractor/utils.d.ts.map +0 -1
- package/core/protractor/utils.js +0 -12
- package/core/protractor/utils.js.map +0 -1
- package/tools/protractor/fetch-manager/_fetch-manager.d.ts +0 -1
- package/tools/protractor/fetch-manager/_fetch-manager.d.ts.map +0 -1
- package/tools/protractor/fetch-manager/_fetch-manager.js +0 -127
- package/tools/protractor/fetch-manager/_fetch-manager.js.map +0 -1
- package/tools/protractor/fetch-manager/index.d.ts +0 -2
- package/tools/protractor/fetch-manager/index.d.ts.map +0 -1
- package/tools/protractor/fetch-manager/index.js +0 -5
- package/tools/protractor/fetch-manager/index.js.map +0 -1
- package/tools/protractor/fetch-manager/utils.d.ts +0 -25
- package/tools/protractor/fetch-manager/utils.d.ts.map +0 -1
- package/tools/protractor/fetch-manager/utils.js +0 -81
- package/tools/protractor/fetch-manager/utils.js.map +0 -1
- package/tools/protractor/index.d.ts +0 -3
- package/tools/protractor/index.d.ts.map +0 -1
- package/tools/protractor/index.js +0 -6
- package/tools/protractor/index.js.map +0 -1
- package/tools/protractor/post-message-interceptor/_post-message-interceptor.d.ts +0 -5
- package/tools/protractor/post-message-interceptor/_post-message-interceptor.d.ts.map +0 -1
- package/tools/protractor/post-message-interceptor/_post-message-interceptor.js +0 -157
- package/tools/protractor/post-message-interceptor/_post-message-interceptor.js.map +0 -1
- package/tools/protractor/post-message-interceptor/core.d.ts +0 -17
- package/tools/protractor/post-message-interceptor/core.d.ts.map +0 -1
- package/tools/protractor/post-message-interceptor/core.js +0 -3
- package/tools/protractor/post-message-interceptor/core.js.map +0 -1
- package/tools/protractor/post-message-interceptor/index.d.ts +0 -3
- package/tools/protractor/post-message-interceptor/index.d.ts.map +0 -1
- package/tools/protractor/post-message-interceptor/index.js +0 -6
- package/tools/protractor/post-message-interceptor/index.js.map +0 -1
- package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts +0 -45
- package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts.map +0 -1
- package/tools/protractor/post-message-interceptor/post-message-interceptor.js +0 -144
- package/tools/protractor/post-message-interceptor/post-message-interceptor.js.map +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/testing",
|
3
|
-
"version": "13.0.0-next.
|
3
|
+
"version": "13.0.0-next.10",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -49,14 +49,6 @@
|
|
49
49
|
"types": "./core/playwright/component-fixture.d.ts",
|
50
50
|
"default": "./core/playwright/component-fixture.js"
|
51
51
|
},
|
52
|
-
"./core/protractor": {
|
53
|
-
"types": "./core/protractor/index.d.ts",
|
54
|
-
"default": "./core/protractor/index.js"
|
55
|
-
},
|
56
|
-
"./core/protractor/component-fixture": {
|
57
|
-
"types": "./core/protractor/component-fixture.d.ts",
|
58
|
-
"default": "./core/protractor/component-fixture.js"
|
59
|
-
},
|
60
52
|
"./kassette": {
|
61
53
|
"types": "./kassette/index.d.ts",
|
62
54
|
"default": "./kassette/index.js"
|
@@ -81,10 +73,6 @@
|
|
81
73
|
"types": "./tools/path-replacement/index.d.ts",
|
82
74
|
"default": "./tools/path-replacement/index.js"
|
83
75
|
},
|
84
|
-
"./tools/protractor": {
|
85
|
-
"types": "./tools/protractor/index.d.ts",
|
86
|
-
"default": "./tools/protractor/index.js"
|
87
|
-
},
|
88
76
|
"./visual-test": {
|
89
77
|
"types": "./visual-test/index.d.ts",
|
90
78
|
"default": "./visual-test/index.js"
|
@@ -101,30 +89,29 @@
|
|
101
89
|
},
|
102
90
|
"peerDependencies": {
|
103
91
|
"@amadeus-it-group/kassette": "^1.7.0",
|
104
|
-
"@angular-devkit/core": "^
|
105
|
-
"@angular-devkit/schematics": "^
|
106
|
-
"@angular/animations": "^
|
107
|
-
"@angular/cli": "^
|
108
|
-
"@angular/common": "^
|
109
|
-
"@angular/core": "^
|
110
|
-
"@angular/forms": "^
|
111
|
-
"@angular/platform-browser": "^
|
92
|
+
"@angular-devkit/core": "^20.0.0",
|
93
|
+
"@angular-devkit/schematics": "^20.0.0",
|
94
|
+
"@angular/animations": "^20.0.0",
|
95
|
+
"@angular/cli": "^20.0.0",
|
96
|
+
"@angular/common": "^20.0.0",
|
97
|
+
"@angular/core": "^20.0.0",
|
98
|
+
"@angular/forms": "^20.0.0",
|
99
|
+
"@angular/platform-browser": "^20.0.0",
|
112
100
|
"@material/slider": "^14.0.0",
|
113
|
-
"@ngrx/store": "^
|
114
|
-
"@ngx-translate/core": "~16.0.4",
|
115
|
-
"@o3r/core": "^13.0.0-next.
|
116
|
-
"@o3r/localization": "^13.0.0-next.
|
117
|
-
"@o3r/schematics": "^13.0.0-next.
|
101
|
+
"@ngrx/store": "^20.0.0",
|
102
|
+
"@ngx-translate/core": "^15.0.0 || ~16.0.4",
|
103
|
+
"@o3r/core": "^13.0.0-next.10",
|
104
|
+
"@o3r/localization": "^13.0.0-next.10",
|
105
|
+
"@o3r/schematics": "^13.0.0-next.10",
|
118
106
|
"@playwright/test": "^1.49.0",
|
119
|
-
"@schematics/angular": "^
|
107
|
+
"@schematics/angular": "^20.0.0",
|
120
108
|
"pixelmatch": "^6.0.0",
|
121
109
|
"pngjs": "^7.0.0",
|
122
|
-
"protractor": "^7.0.0",
|
123
110
|
"rxjs": "^7.8.1",
|
124
111
|
"temporal-polyfill": "^0.3.0",
|
125
112
|
"ts-node": "~10.9.2",
|
126
|
-
"type-fest": "^4.
|
127
|
-
"typescript": "^5.
|
113
|
+
"type-fest": "^4.30.1",
|
114
|
+
"typescript": "^5.8.0"
|
128
115
|
},
|
129
116
|
"peerDependenciesMeta": {
|
130
117
|
"@amadeus-it-group/kassette": {
|
@@ -139,9 +126,15 @@
|
|
139
126
|
"@angular/cli": {
|
140
127
|
"optional": true
|
141
128
|
},
|
129
|
+
"@angular/forms": {
|
130
|
+
"optional": true
|
131
|
+
},
|
142
132
|
"@material/slider": {
|
143
133
|
"optional": true
|
144
134
|
},
|
135
|
+
"@ngrx/store": {
|
136
|
+
"optional": true
|
137
|
+
},
|
145
138
|
"@ngx-translate/core": {
|
146
139
|
"optional": true
|
147
140
|
},
|
@@ -166,9 +159,6 @@
|
|
166
159
|
"pngjs": {
|
167
160
|
"optional": true
|
168
161
|
},
|
169
|
-
"protractor": {
|
170
|
-
"optional": true
|
171
|
-
},
|
172
162
|
"temporal-polyfill": {
|
173
163
|
"optional": true
|
174
164
|
},
|
@@ -177,51 +167,51 @@
|
|
177
167
|
}
|
178
168
|
},
|
179
169
|
"dependencies": {
|
180
|
-
"@o3r/schematics": "^13.0.0-next.
|
170
|
+
"@o3r/schematics": "^13.0.0-next.10",
|
181
171
|
"esbuild": "~0.25.1",
|
182
172
|
"module-from-string": "^3.2.0",
|
183
173
|
"tslib": "^2.6.2"
|
184
174
|
},
|
185
175
|
"devDependencies": {
|
186
176
|
"@amadeus-it-group/kassette": "^1.7.0",
|
187
|
-
"@angular-devkit/build-angular": "~
|
188
|
-
"@angular-devkit/core": "~
|
189
|
-
"@angular-devkit/schematics": "~
|
190
|
-
"@angular/cli": "~
|
191
|
-
"@angular/common": "~
|
192
|
-
"@angular/compiler": "~
|
193
|
-
"@angular/compiler-cli": "~
|
194
|
-
"@angular/core": "~
|
195
|
-
"@angular/forms": "~
|
196
|
-
"@angular/platform-browser": "~
|
197
|
-
"@angular/platform-browser-dynamic": "~
|
198
|
-
"@babel/core": "~7.
|
177
|
+
"@angular-devkit/build-angular": "~20.0.0",
|
178
|
+
"@angular-devkit/core": "~20.0.0",
|
179
|
+
"@angular-devkit/schematics": "~20.0.0",
|
180
|
+
"@angular/cli": "~20.0.0",
|
181
|
+
"@angular/common": "~20.0.0",
|
182
|
+
"@angular/compiler": "~20.0.0",
|
183
|
+
"@angular/compiler-cli": "~20.0.0",
|
184
|
+
"@angular/core": "~20.0.0",
|
185
|
+
"@angular/forms": "~20.0.0",
|
186
|
+
"@angular/platform-browser": "~20.0.0",
|
187
|
+
"@angular/platform-browser-dynamic": "~20.0.0",
|
188
|
+
"@babel/core": "~7.28.0",
|
199
189
|
"@babel/preset-typescript": "~7.27.0",
|
200
190
|
"@compodoc/compodoc": "^1.1.19",
|
201
191
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
202
192
|
"@material/slider": "^14.0.0",
|
203
|
-
"@ngrx/store": "~
|
193
|
+
"@ngrx/store": "~20.0.0",
|
204
194
|
"@ngx-translate/core": "~16.0.4",
|
205
|
-
"@nx/eslint-plugin": "~
|
206
|
-
"@nx/jest": "~
|
207
|
-
"@o3r/build-helpers": "^13.0.0-next.
|
208
|
-
"@o3r/core": "^13.0.0-next.
|
209
|
-
"@o3r/eslint-plugin": "^13.0.0-next.
|
210
|
-
"@o3r/localization": "^13.0.0-next.
|
211
|
-
"@o3r/test-helpers": "^13.0.0-next.
|
195
|
+
"@nx/eslint-plugin": "~21.2.0",
|
196
|
+
"@nx/jest": "~21.2.0",
|
197
|
+
"@o3r/build-helpers": "^13.0.0-next.10",
|
198
|
+
"@o3r/core": "^13.0.0-next.10",
|
199
|
+
"@o3r/eslint-plugin": "^13.0.0-next.10",
|
200
|
+
"@o3r/localization": "^13.0.0-next.10",
|
201
|
+
"@o3r/test-helpers": "^13.0.0-next.10",
|
212
202
|
"@playwright/test": "~1.51.0",
|
213
|
-
"@schematics/angular": "~
|
203
|
+
"@schematics/angular": "~20.0.0",
|
214
204
|
"@stylistic/eslint-plugin": "~3.1.0",
|
215
205
|
"@swc/helpers": "~0.5.0",
|
216
206
|
"@types/jest": "~29.5.2",
|
217
207
|
"@types/node": "^20.0.0",
|
218
208
|
"@types/pixelmatch": "^5.2.3",
|
219
209
|
"@types/pngjs": "^6.0.0",
|
220
|
-
"@typescript-eslint/parser": "~8.
|
221
|
-
"angular-eslint": "~
|
210
|
+
"@typescript-eslint/parser": "~8.37.0",
|
211
|
+
"angular-eslint": "~20.1.0",
|
222
212
|
"concurrently": "^9.1.0",
|
223
213
|
"cpy-cli": "^5.0.0",
|
224
|
-
"eslint": "~9.
|
214
|
+
"eslint": "~9.31.0",
|
225
215
|
"eslint-import-resolver-node": "~0.3.9",
|
226
216
|
"eslint-import-resolver-typescript": "~3.10.0",
|
227
217
|
"eslint-plugin-import": "~2.32.0",
|
@@ -236,13 +226,12 @@
|
|
236
226
|
"jest": "~29.7.0",
|
237
227
|
"jest-environment-jsdom": "~29.7.0",
|
238
228
|
"jest-junit": "~16.0.0",
|
239
|
-
"jest-preset-angular": "~14.
|
229
|
+
"jest-preset-angular": "~14.6.0",
|
240
230
|
"jsonc-eslint-parser": "~2.4.0",
|
241
|
-
"nx": "~
|
231
|
+
"nx": "~21.2.0",
|
242
232
|
"pid-from-port": "^1.1.3",
|
243
233
|
"pixelmatch": "^6.0.0",
|
244
234
|
"pngjs": "^7.0.0",
|
245
|
-
"protractor": "^7.0.0",
|
246
235
|
"rxjs": "^7.8.1",
|
247
236
|
"semver": "^7.5.2",
|
248
237
|
"temporal-polyfill": "^0.3.0",
|
@@ -250,18 +239,18 @@
|
|
250
239
|
"ts-node": "~10.9.2",
|
251
240
|
"type-fest": "^4.30.1",
|
252
241
|
"typescript": "~5.8.2",
|
253
|
-
"typescript-eslint": "~8.
|
242
|
+
"typescript-eslint": "~8.37.0",
|
254
243
|
"zone.js": "~0.15.0"
|
255
244
|
},
|
256
245
|
"generatorDependencies": {
|
257
|
-
"@angular-builders/jest": "~
|
246
|
+
"@angular-builders/jest": "~20.0.0"
|
258
247
|
},
|
259
248
|
"schematics": "./collection.json",
|
260
249
|
"ng-update": {
|
261
250
|
"migrations": "./migration.json"
|
262
251
|
},
|
263
252
|
"engines": {
|
264
|
-
"node": "^20.
|
253
|
+
"node": "^20.19.0 || ^22.12.0 || ^24.0.0"
|
265
254
|
},
|
266
255
|
"contributors": [
|
267
256
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAkMpC;;;GAGG;AACH,eAAO,MAAM,KAAK,wBAAgC,CAAC"}
|
@@ -18,7 +18,10 @@ const dependenciesToInstall = [];
|
|
18
18
|
const devDependenciesToInstall = [
|
19
19
|
'pixelmatch',
|
20
20
|
'pngjs',
|
21
|
-
'@angular-devkit/build-angular'
|
21
|
+
'@angular-devkit/build-angular',
|
22
|
+
'@angular/animations',
|
23
|
+
'@angular/core',
|
24
|
+
'@angular/common'
|
22
25
|
];
|
23
26
|
/**
|
24
27
|
* Add Otter testing to an Angular Project
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,kCAAkC;AAClC,8DAE2C;AAC3C,2DAaoC;AACpC,gDAeyB;AAOzB,uCAEmB;AACnB,6CAEsB;AACtB;;GAEG;AACH,MAAM,qBAAqB,GAAa,EAAE,CAAC;AAE3C;;GAEG;AACH,MAAM,wBAAwB,GAAG;IAC/B,YAAY;IACZ,OAAO;IACP,+BAA+B;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,kCAAkC;AAClC,8DAE2C;AAC3C,2DAaoC;AACpC,gDAeyB;AAOzB,uCAEmB;AACnB,6CAEsB;AACtB;;GAEG;AACH,MAAM,qBAAqB,GAAa,EAAE,CAAC;AAE3C;;GAEG;AACH,MAAM,wBAAwB,GAAG;IAC/B,YAAY;IACZ,OAAO;IACP,+BAA+B;IAC/B,qBAAqB;IACrB,eAAe;IACf,iBAAiB;CAClB,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,IAAI,CAAC;YACH,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;YAChF,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAgB,CAAC;YAC1G,MAAM,QAAQ,GAAG,IAAA,2BAAc,EAAC,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B,GAAE;yBACtB,CAAC,EAAE,0BAAa,CAAC,OAAO,CAAC,CAAC;wBAC3B,KAAK,CAAC,IAAI,CACR,2BAA2B,CAC5B,CAAC;oBACJ,CAAC;gBACH,CAAC;YACH,CAAC;YAED,OAAO,GAAG,EAAE,CAAC,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;;+GAEoF,CAAC,CAAC;YAC3G,MAAM,IAAI,wBAAW,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACU,QAAA,KAAK,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,CAAC"}
|
package/tools/index.d.ts
CHANGED
package/tools/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
package/tools/index.js
CHANGED
package/tools/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC","sourcesContent":["export * from './path-replacement';\n"]}
|
@@ -2,8 +2,8 @@ import { TransformOptions } from 'esbuild';
|
|
2
2
|
/**
|
3
3
|
* Switch to the needed implementation of core testing, when running e2e tests
|
4
4
|
* transforms ESM into CJS when needed
|
5
|
-
* @param frameworkName Name of the framework used for e2e testing (playwright
|
5
|
+
* @param frameworkName Name of the framework used for e2e testing (playwright)
|
6
6
|
* @param customTransformOptions
|
7
7
|
*/
|
8
|
-
export declare function adjustPath(frameworkName
|
8
|
+
export declare function adjustPath(frameworkName?: 'playwright', customTransformOptions?: TransformOptions): void;
|
9
9
|
//# sourceMappingURL=path-replacement.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"path-replacement.d.ts","sourceRoot":"","sources":["../../../src/tools/path-replacement/path-replacement.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AAIjB;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,aAAa,
|
1
|
+
{"version":3,"file":"path-replacement.d.ts","sourceRoot":"","sources":["../../../src/tools/path-replacement/path-replacement.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AAIjB;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,aAAa,GAAE,YAA2B,EAAE,sBAAsB,GAAE,gBAAqB,QAiDnH"}
|
@@ -10,10 +10,11 @@ var module_from_string_1 = require("module-from-string");
|
|
10
10
|
/**
|
11
11
|
* Switch to the needed implementation of core testing, when running e2e tests
|
12
12
|
* transforms ESM into CJS when needed
|
13
|
-
* @param frameworkName Name of the framework used for e2e testing (playwright
|
13
|
+
* @param frameworkName Name of the framework used for e2e testing (playwright)
|
14
14
|
* @param customTransformOptions
|
15
15
|
*/
|
16
16
|
function adjustPath(frameworkName, customTransformOptions) {
|
17
|
+
if (frameworkName === void 0) { frameworkName = 'playwright'; }
|
17
18
|
if (customTransformOptions === void 0) { customTransformOptions = {}; }
|
18
19
|
var modulesCache = {};
|
19
20
|
// eslint-disable-next-line @typescript-eslint/unbound-method -- No need to bind the method, we are using `apply`
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"path-replacement.js","sourceRoot":"","sources":["../../../src/tools/path-replacement/path-replacement.ts"],"names":[],"mappings":";;AAkBA,gCAiDC;;AAnED,4BAA8B;AAC9B,2CAEqB;AACrB,gCAAkC;AAClC,mCAGiB;AACjB,yDAE4B;AAC5B;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,aAA0C,EAAE,sBAA6C;
|
1
|
+
{"version":3,"file":"path-replacement.js","sourceRoot":"","sources":["../../../src/tools/path-replacement/path-replacement.ts"],"names":[],"mappings":";;AAkBA,gCAiDC;;AAnED,4BAA8B;AAC9B,2CAEqB;AACrB,gCAAkC;AAClC,mCAGiB;AACjB,yDAE4B;AAC5B;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,aAA0C,EAAE,sBAA6C;IAAzF,8BAAA,EAAA,4BAA0C;IAAE,uCAAA,EAAA,2BAA6C;IAClH,IAAM,YAAY,GAAwB,EAAE,CAAC;IAC7C,iHAAiH;IACjH,IAAM,eAAe,GAAG,oBAAM,CAAC,SAAS,CAAC,OAAO,CAAC;IACjD,IAAM,KAAK,GAAG,IAAI,MAAM,CAAC,+BAAwB,aAAa,UAAO,CAAC,CAAC;IACvE,oBAAM,CAAC,SAAS,CAAC,OAAO,GAAG,UAA+B,EAAU;QAClE,IAAM,KAAK,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,4BAAqB,aAAa,OAAI,CAAC,CAAC;QAExE,IAAI,CAAC;YACH,OAAO,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QACvD,CAAC;QAAC,WAAM,CAAC;YACP,IAAM,KAAK,GAAI,EAAe;iBAC3B,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,EAAnC,CAAmC,CAAC,CAAC,CAAC;YAElF,IAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC;YACnD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC5B,IAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;gBAC9C,IAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;gBAC/C,0CAA0C;gBAC1C,IAAM,KAAK,GAAG,IAAA,uBAAa,EAAC,WAAW,CAAC,QAAQ,EAAE,qBAChD,MAAM,EAAE,IAAI,EACZ,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,QAAQ,EAChB,cAAc,EAAE,IAAI,EACpB,UAAU,EAAE,GAAG,IACZ,sBAAsB,EACzB,CAAC;gBAEH;;;;;;mBAMG;gBACH,IAAI,CAAC;oBACH,YAAY,CAAC,QAAQ,CAAC,GAAG,IAAA,sCAAiB,EAAC,KAAK,CAAC,IAAI,EAAE;wBACrD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;wBAC/B,gBAAgB,EAAE,IAAI;qBACvB,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,EAAE,EAAE,CAAC;oBACZ,mEAAmE;oBACnE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBACpB,CAAC;YACH,CAAC;YAED,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;IACH,CAAmB,CAAC;AACtB,CAAC","sourcesContent":["import * as fs from 'node:fs';\nimport {\n Module,\n} from 'node:module';\nimport * as path from 'node:path';\nimport {\n TransformOptions,\n transformSync,\n} from 'esbuild';\nimport {\n requireFromString,\n} from 'module-from-string';\n/**\n * Switch to the needed implementation of core testing, when running e2e tests\n * transforms ESM into CJS when needed\n * @param frameworkName Name of the framework used for e2e testing (playwright)\n * @param customTransformOptions\n */\nexport function adjustPath(frameworkName: 'playwright' = 'playwright', customTransformOptions: TransformOptions = {}) {\n const modulesCache: Record<string, any> = {};\n // eslint-disable-next-line @typescript-eslint/unbound-method -- No need to bind the method, we are using `apply`\n const originalRequire = Module.prototype.require;\n const regex = new RegExp(`@o3r/testing/core(?!/${frameworkName})(.*)`);\n Module.prototype.require = function (this: NodeJS.Module, id: string) {\n const newId = id.replace(regex, `@o3r/testing/core/${frameworkName}$1`);\n\n try {\n return Reflect.apply(originalRequire, this, [newId]);\n } catch {\n const paths = ([] as string[])\n .concat(this.paths, this.paths.map((i) => i.replace(/[/\\\\]node_modules$/, '')));\n\n const filePath = require.resolve(newId, { paths });\n if (!modulesCache[filePath]) {\n const fileContent = fs.readFileSync(filePath);\n const cwd = path.resolve(process.cwd(), 'src');\n // we use ESBUILD to transform it into CJS\n const trans = transformSync(fileContent.toString(), {\n loader: 'js',\n format: 'cjs',\n target: 'es2016',\n sourcesContent: true,\n sourceRoot: cwd,\n ...customTransformOptions\n });\n\n /**\n * requireFromString will execute the file apart from just returning a module\n * It can throw an exception which will prevent stop the execution\n *\n * That main blocker includes IVY-compatible libraries which have\n * no compiler facade in a global scope.\n */\n try {\n modulesCache[filePath] = requireFromString(trans.code, {\n dirname: path.dirname(filePath),\n useCurrentGlobal: true\n });\n } catch (ex) {\n // eslint-disable-next-line no-console -- no other logger available\n console.error(ex);\n }\n }\n\n return modulesCache[filePath];\n }\n } as NodeJS.Require;\n}\n"]}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { ElementFinder } from 'protractor';
|
2
|
-
import { MatAutocompleteProfile } from '../../angular-materials';
|
3
|
-
import { O3rElement } from '../element';
|
4
|
-
/**
|
5
|
-
* Implementation dedicated to Protractor.
|
6
|
-
* @deprecated Will be removed in v13, please use Playwright instead
|
7
|
-
*/
|
8
|
-
export declare class MatAutocomplete extends O3rElement implements MatAutocompleteProfile {
|
9
|
-
constructor(sourceElement: ElementFinder | O3rElement);
|
10
|
-
/** @inheritdoc */
|
11
|
-
selectByValue(value: string, _timeout?: number): Promise<void>;
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=autocomplete-material.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"autocomplete-material.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/autocomplete-material.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,UAAW,YAAW,sBAAsB;gBACnE,aAAa,EAAE,aAAa,GAAG,UAAU;IAIrD,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;CAM5D"}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MatAutocomplete = void 0;
|
4
|
-
var tslib_1 = require("tslib");
|
5
|
-
var protractor_1 = require("protractor");
|
6
|
-
var element_1 = require("../element");
|
7
|
-
/**
|
8
|
-
* Implementation dedicated to Protractor.
|
9
|
-
* @deprecated Will be removed in v13, please use Playwright instead
|
10
|
-
*/
|
11
|
-
var MatAutocomplete = /** @class */ (function (_super) {
|
12
|
-
tslib_1.__extends(MatAutocomplete, _super);
|
13
|
-
function MatAutocomplete(sourceElement) {
|
14
|
-
return _super.call(this, sourceElement) || this;
|
15
|
-
}
|
16
|
-
/** @inheritdoc */
|
17
|
-
MatAutocomplete.prototype.selectByValue = function (value, _timeout) {
|
18
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
19
|
-
var matOption;
|
20
|
-
return tslib_1.__generator(this, function (_a) {
|
21
|
-
switch (_a.label) {
|
22
|
-
case 0: return [4 /*yield*/, this.setValue(value)];
|
23
|
-
case 1:
|
24
|
-
_a.sent();
|
25
|
-
return [4 /*yield*/, this.click()];
|
26
|
-
case 2:
|
27
|
-
_a.sent();
|
28
|
-
matOption = (0, protractor_1.element)(protractor_1.By.css('.mat-option, mat-option'));
|
29
|
-
return [2 /*return*/, new element_1.O3rElement(matOption).click()];
|
30
|
-
}
|
31
|
-
});
|
32
|
-
});
|
33
|
-
};
|
34
|
-
return MatAutocomplete;
|
35
|
-
}(element_1.O3rElement));
|
36
|
-
exports.MatAutocomplete = MatAutocomplete;
|
37
|
-
//# sourceMappingURL=autocomplete-material.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"autocomplete-material.js","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/autocomplete-material.ts"],"names":[],"mappings":";;;;AAAA,yCAIoB;AAIpB,sCAEoB;AAEpB;;;GAGG;AACH;IAAqC,2CAAU;IAC7C,yBAAY,aAAyC;QACnD,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,uCAAa,GAA1B,UAA2B,KAAa,EAAE,QAAiB;;;;;4BACzD,qBAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAA;;wBAA1B,SAA0B,CAAC;wBAC3B,qBAAM,IAAI,CAAC,KAAK,EAAE,EAAA;;wBAAlB,SAAkB,CAAC;wBACb,SAAS,GAAG,IAAA,oBAAO,EAAC,eAAE,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC;wBAC7D,sBAAO,IAAI,oBAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAC;;;;KAC1C;IACH,sBAAC;AAAD,CAAC,AAZD,CAAqC,oBAAU,GAY9C;AAZY,0CAAe","sourcesContent":["import {\n By,\n element,\n ElementFinder,\n} from 'protractor';\nimport {\n MatAutocompleteProfile,\n} from '../../angular-materials';\nimport {\n O3rElement,\n} from '../element';\n\n/**\n * Implementation dedicated to Protractor.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class MatAutocomplete extends O3rElement implements MatAutocompleteProfile {\n constructor(sourceElement: ElementFinder | O3rElement) {\n super(sourceElement);\n }\n\n /** @inheritdoc */\n public async selectByValue(value: string, _timeout?: number) {\n await this.setValue(value);\n await this.click();\n const matOption = element(By.css('.mat-option, mat-option'));\n return new O3rElement(matOption).click();\n }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./autocomplete-material"), exports);
|
5
|
-
tslib_1.__exportStar(require("./select-material"), exports);
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,4DAAkC","sourcesContent":["export * from './autocomplete-material';\nexport * from './select-material';\n"]}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { ElementFinder } from 'protractor';
|
2
|
-
import { MatSelectProfile } from '../../angular-materials';
|
3
|
-
import { O3rElement } from '../element';
|
4
|
-
/**
|
5
|
-
* Implementation dedicated to Protractor.
|
6
|
-
* @deprecated Will be removed in v13, please use Playwright instead
|
7
|
-
*/
|
8
|
-
export declare class MatSelect extends O3rElement implements MatSelectProfile {
|
9
|
-
constructor(sourceElement: ElementFinder | O3rElement);
|
10
|
-
/** @inheritdoc */
|
11
|
-
selectByIndex(index: number, _timeout?: number): Promise<void>;
|
12
|
-
/** @inheritdoc */
|
13
|
-
selectByValue(value: string, _timeout?: number): Promise<void>;
|
14
|
-
/** @inheritdoc */
|
15
|
-
selectByLabel(label: string, _timeout?: number): Promise<void>;
|
16
|
-
/** @inheritDoc */
|
17
|
-
getValue(): Promise<string | undefined>;
|
18
|
-
}
|
19
|
-
//# sourceMappingURL=select-material.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"select-material.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/select-material.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,qBAAa,SAAU,SAAQ,UAAW,YAAW,gBAAgB;gBACvD,aAAa,EAAE,aAAa,GAAG,UAAU;IAIrD,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAY3D,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAe3D,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAe3D,kBAAkB;IACX,QAAQ;CAKhB"}
|
@@ -1,113 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MatSelect = void 0;
|
4
|
-
var tslib_1 = require("tslib");
|
5
|
-
var protractor_1 = require("protractor");
|
6
|
-
var element_1 = require("../element");
|
7
|
-
/**
|
8
|
-
* Implementation dedicated to Protractor.
|
9
|
-
* @deprecated Will be removed in v13, please use Playwright instead
|
10
|
-
*/
|
11
|
-
var MatSelect = /** @class */ (function (_super) {
|
12
|
-
tslib_1.__extends(MatSelect, _super);
|
13
|
-
function MatSelect(sourceElement) {
|
14
|
-
return _super.call(this, sourceElement) || this;
|
15
|
-
}
|
16
|
-
/** @inheritdoc */
|
17
|
-
MatSelect.prototype.selectByIndex = function (index, _timeout) {
|
18
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
19
|
-
var options, option;
|
20
|
-
return tslib_1.__generator(this, function (_a) {
|
21
|
-
switch (_a.label) {
|
22
|
-
case 0: return [4 /*yield*/, this.click()];
|
23
|
-
case 1:
|
24
|
-
_a.sent();
|
25
|
-
return [4 /*yield*/, protractor_1.element.all(protractor_1.By.css('mat-option')).asElementFinders_()];
|
26
|
-
case 2:
|
27
|
-
options = _a.sent();
|
28
|
-
if (typeof options[index] === 'undefined') {
|
29
|
-
return [2 /*return*/, Promise.reject(new Error("Option with index ".concat(index, " not found in select element.")))];
|
30
|
-
}
|
31
|
-
else {
|
32
|
-
option = new element_1.O3rElement(options[index]);
|
33
|
-
return [2 /*return*/, option.click()];
|
34
|
-
}
|
35
|
-
return [2 /*return*/];
|
36
|
-
}
|
37
|
-
});
|
38
|
-
});
|
39
|
-
};
|
40
|
-
/** @inheritdoc */
|
41
|
-
MatSelect.prototype.selectByValue = function (value, _timeout) {
|
42
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
43
|
-
var options, _i, options_1, opt, option;
|
44
|
-
return tslib_1.__generator(this, function (_a) {
|
45
|
-
switch (_a.label) {
|
46
|
-
case 0: return [4 /*yield*/, this.click()];
|
47
|
-
case 1:
|
48
|
-
_a.sent();
|
49
|
-
return [4 /*yield*/, protractor_1.element.all(protractor_1.By.css('mat-option')).asElementFinders_()];
|
50
|
-
case 2:
|
51
|
-
options = _a.sent();
|
52
|
-
_i = 0, options_1 = options;
|
53
|
-
_a.label = 3;
|
54
|
-
case 3:
|
55
|
-
if (!(_i < options_1.length)) return [3 /*break*/, 6];
|
56
|
-
opt = options_1[_i];
|
57
|
-
option = new element_1.O3rElement(opt);
|
58
|
-
return [4 /*yield*/, option.getAttribute('ng-reflect-value')];
|
59
|
-
case 4:
|
60
|
-
if ((_a.sent()) === value) {
|
61
|
-
return [2 /*return*/, option.click()];
|
62
|
-
}
|
63
|
-
_a.label = 5;
|
64
|
-
case 5:
|
65
|
-
_i++;
|
66
|
-
return [3 /*break*/, 3];
|
67
|
-
case 6: return [2 /*return*/, Promise.reject(new Error("Option with value ".concat(value, " not found in select element.")))];
|
68
|
-
}
|
69
|
-
});
|
70
|
-
});
|
71
|
-
};
|
72
|
-
/** @inheritdoc */
|
73
|
-
MatSelect.prototype.selectByLabel = function (label, _timeout) {
|
74
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
75
|
-
var options, _i, options_2, opt, option;
|
76
|
-
return tslib_1.__generator(this, function (_a) {
|
77
|
-
switch (_a.label) {
|
78
|
-
case 0: return [4 /*yield*/, this.click()];
|
79
|
-
case 1:
|
80
|
-
_a.sent();
|
81
|
-
return [4 /*yield*/, protractor_1.element.all(protractor_1.By.css('mat-option')).asElementFinders_()];
|
82
|
-
case 2:
|
83
|
-
options = _a.sent();
|
84
|
-
_i = 0, options_2 = options;
|
85
|
-
_a.label = 3;
|
86
|
-
case 3:
|
87
|
-
if (!(_i < options_2.length)) return [3 /*break*/, 6];
|
88
|
-
opt = options_2[_i];
|
89
|
-
option = new element_1.O3rElement(opt);
|
90
|
-
return [4 /*yield*/, option.getText()];
|
91
|
-
case 4:
|
92
|
-
if ((_a.sent()) === label) {
|
93
|
-
return [2 /*return*/, option.click()];
|
94
|
-
}
|
95
|
-
_a.label = 5;
|
96
|
-
case 5:
|
97
|
-
_i++;
|
98
|
-
return [3 /*break*/, 3];
|
99
|
-
case 6: return [2 /*return*/, Promise.reject(new Error("Option with label ".concat(label, " not found in select element.")))];
|
100
|
-
}
|
101
|
-
});
|
102
|
-
});
|
103
|
-
};
|
104
|
-
/** @inheritDoc */
|
105
|
-
MatSelect.prototype.getValue = function () {
|
106
|
-
// eslint-disable-next-line no-console -- no other logger available
|
107
|
-
console.warn('Usage of "getValue" is not recommended on Material Select elements. Use "getPlainText()" instead.');
|
108
|
-
return _super.prototype.getValue.call(this);
|
109
|
-
};
|
110
|
-
return MatSelect;
|
111
|
-
}(element_1.O3rElement));
|
112
|
-
exports.MatSelect = MatSelect;
|
113
|
-
//# sourceMappingURL=select-material.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"select-material.js","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/select-material.ts"],"names":[],"mappings":";;;;AAAA,yCAIoB;AAIpB,sCAEoB;AAEpB;;;GAGG;AACH;IAA+B,qCAAU;IACvC,mBAAY,aAAyC;QACnD,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,iCAAa,GAA1B,UAA2B,KAAa,EAAE,QAAiB;;;;;4BACzD,qBAAM,IAAI,CAAC,KAAK,EAAE,EAAA;;wBAAlB,SAAkB,CAAC;wBAEc,qBAAM,oBAAO,CAAC,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,EAAA;;wBAAtF,OAAO,GAAoB,SAA2D;wBAC5F,IAAI,OAAO,OAAO,CAAC,KAAK,CAAC,KAAK,WAAW,EAAE,CAAC;4BAC1C,sBAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,4BAAqB,KAAK,kCAA+B,CAAC,CAAC,EAAC;wBAC9F,CAAC;6BAAM,CAAC;4BACA,MAAM,GAAG,IAAI,oBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;4BAC9C,sBAAO,MAAM,CAAC,KAAK,EAAE,EAAC;wBACxB,CAAC;;;;;KACF;IAED,kBAAkB;IACL,iCAAa,GAA1B,UAA2B,KAAa,EAAE,QAAiB;;;;;4BACzD,qBAAM,IAAI,CAAC,KAAK,EAAE,EAAA;;wBAAlB,SAAkB,CAAC;wBAEc,qBAAM,oBAAO,CAAC,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,EAAA;;wBAAtF,OAAO,GAAoB,SAA2D;8BAEnE,EAAP,mBAAO;;;6BAAP,CAAA,qBAAO,CAAA;wBAAd,GAAG;wBACN,MAAM,GAAG,IAAI,oBAAU,CAAC,GAAG,CAAC,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\n ElementFinder,\n} from 'protractor';\nimport {\n MatSelectProfile,\n} from '../../angular-materials';\nimport {\n O3rElement,\n} from '../element';\n\n/**\n * Implementation dedicated to Protractor.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class MatSelect extends O3rElement implements MatSelectProfile {\n constructor(sourceElement: ElementFinder | O3rElement) {\n super(sourceElement);\n }\n\n /** @inheritdoc */\n public async selectByIndex(index: number, _timeout?: number) {\n await this.click();\n // eslint-disable-next-line no-underscore-dangle -- naming convention imposed by Playwright\n const options: ElementFinder[] = await element.all(By.css('mat-option')).asElementFinders_();\n if (typeof options[index] === 'undefined') {\n return Promise.reject(new Error(`Option with index ${index} not found in select element.`));\n } else {\n const option = new O3rElement(options[index]);\n return option.click();\n }\n }\n\n /** @inheritdoc */\n public async selectByValue(value: string, _timeout?: number) {\n await this.click();\n // eslint-disable-next-line no-underscore-dangle -- naming convention imposed by Playwright\n const options: ElementFinder[] = await element.all(By.css('mat-option')).asElementFinders_();\n\n for (const opt of options) {\n const option = new O3rElement(opt);\n if (await option.getAttribute('ng-reflect-value') === value) {\n return option.click();\n }\n }\n\n return Promise.reject(new Error(`Option with value ${value} not found in select element.`));\n }\n\n /** @inheritdoc */\n public async selectByLabel(label: string, _timeout?: number) {\n await this.click();\n // eslint-disable-next-line no-underscore-dangle -- naming convention imposed by Playwright\n const options: ElementFinder[] = await element.all(By.css('mat-option')).asElementFinders_();\n\n for (const opt of options) {\n const option = new O3rElement(opt);\n if (await option.getText() === label) {\n return option.click();\n }\n }\n\n return Promise.reject(new Error(`Option with label ${label} not found in select element.`));\n }\n\n /** @inheritDoc */\n public getValue() {\n // eslint-disable-next-line no-console -- no other logger available\n console.warn('Usage of \"getValue\" is not recommended on Material Select elements. Use \"getPlainText()\" instead.');\n return super.getValue();\n }\n}\n"]}
|