@o3r/testing 11.6.0-prerelease.6 → 11.6.0-prerelease.8

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 (225) hide show
  1. package/core/angular/angular-materials/autocomplete-material.d.ts +0 -1
  2. package/core/angular/angular-materials/autocomplete-material.d.ts.map +1 -1
  3. package/core/angular/angular-materials/autocomplete-material.js.map +1 -1
  4. package/core/angular/angular-materials/select-material.d.ts +0 -1
  5. package/core/angular/angular-materials/select-material.d.ts.map +1 -1
  6. package/core/angular/angular-materials/select-material.js +4 -3
  7. package/core/angular/angular-materials/select-material.js.map +1 -1
  8. package/core/angular/angular-materials/slider-material.d.ts.map +1 -1
  9. package/core/angular/angular-materials/slider-material.js.map +1 -1
  10. package/core/angular/component-fixture.d.ts.map +1 -1
  11. package/core/angular/component-fixture.js +3 -10
  12. package/core/angular/component-fixture.js.map +1 -1
  13. package/core/angular/element.d.ts.map +1 -1
  14. package/core/angular/element.js +2 -2
  15. package/core/angular/element.js.map +1 -1
  16. package/core/angular/elements/checkbox-element.d.ts.map +1 -1
  17. package/core/angular/elements/checkbox-element.js.map +1 -1
  18. package/core/angular/elements/radio-element.d.ts.map +1 -1
  19. package/core/angular/elements/radio-element.js.map +1 -1
  20. package/core/angular/elements/select-element.d.ts +0 -1
  21. package/core/angular/elements/select-element.d.ts.map +1 -1
  22. package/core/angular/elements/select-element.js +2 -2
  23. package/core/angular/elements/select-element.js.map +1 -1
  24. package/core/angular/elements/slider-element.d.ts +2 -1
  25. package/core/angular/elements/slider-element.d.ts.map +1 -1
  26. package/core/angular/elements/slider-element.js +2 -1
  27. package/core/angular/elements/slider-element.js.map +1 -1
  28. package/core/angular/group.d.ts.map +1 -1
  29. package/core/angular/group.js.map +1 -1
  30. package/core/angular/groups/radio-group.d.ts.map +1 -1
  31. package/core/angular/groups/radio-group.js.map +1 -1
  32. package/core/angular/index.d.ts +3 -2
  33. package/core/angular/index.d.ts.map +1 -1
  34. package/core/angular/index.js +2 -2
  35. package/core/angular/index.js.map +1 -1
  36. package/core/angular/page-fixture.d.ts.map +1 -1
  37. package/core/angular/page-fixture.js.map +1 -1
  38. package/core/angular-materials/autocomplete-material.d.ts.map +1 -1
  39. package/core/angular-materials/autocomplete-material.js.map +1 -1
  40. package/core/angular-materials/select-material.d.ts.map +1 -1
  41. package/core/angular-materials/select-material.js.map +1 -1
  42. package/core/angular-materials/slider-material.d.ts.map +1 -1
  43. package/core/angular-materials/slider-material.js.map +1 -1
  44. package/core/component-fixture.d.ts +18 -36
  45. package/core/component-fixture.d.ts.map +1 -1
  46. package/core/component-fixture.js +18 -36
  47. package/core/component-fixture.js.map +1 -1
  48. package/core/element.d.ts.map +1 -1
  49. package/core/element.js.map +1 -1
  50. package/core/elements/checkbox-element.d.ts.map +1 -1
  51. package/core/elements/checkbox-element.js.map +1 -1
  52. package/core/elements/radio-element.d.ts.map +1 -1
  53. package/core/elements/radio-element.js.map +1 -1
  54. package/core/elements/select-element.d.ts.map +1 -1
  55. package/core/elements/select-element.js.map +1 -1
  56. package/core/elements/slider-element.d.ts.map +1 -1
  57. package/core/elements/slider-element.js.map +1 -1
  58. package/core/group.d.ts.map +1 -1
  59. package/core/group.js.map +1 -1
  60. package/core/groups/radio-group.d.ts.map +1 -1
  61. package/core/groups/radio-group.js.map +1 -1
  62. package/core/helpers.d.ts +1 -1
  63. package/core/helpers.d.ts.map +1 -1
  64. package/core/helpers.js.map +1 -1
  65. package/core/index.d.ts +2 -2
  66. package/core/index.d.ts.map +1 -1
  67. package/core/index.js +2 -2
  68. package/core/index.js.map +1 -1
  69. package/core/page-fixture.d.ts.map +1 -1
  70. package/core/page-fixture.js.map +1 -1
  71. package/core/playwright/angular-materials/autocomplete-material.d.ts +0 -1
  72. package/core/playwright/angular-materials/autocomplete-material.d.ts.map +1 -1
  73. package/core/playwright/angular-materials/autocomplete-material.js +1 -1
  74. package/core/playwright/angular-materials/autocomplete-material.js.map +1 -1
  75. package/core/playwright/angular-materials/select-material.d.ts +0 -1
  76. package/core/playwright/angular-materials/select-material.d.ts.map +1 -1
  77. package/core/playwright/angular-materials/select-material.js +3 -3
  78. package/core/playwright/angular-materials/select-material.js.map +1 -1
  79. package/core/playwright/angular-materials/slider-material.d.ts.map +1 -1
  80. package/core/playwright/angular-materials/slider-material.js.map +1 -1
  81. package/core/playwright/component-fixture.d.ts.map +1 -1
  82. package/core/playwright/component-fixture.js +2 -10
  83. package/core/playwright/component-fixture.js.map +1 -1
  84. package/core/playwright/element.d.ts.map +1 -1
  85. package/core/playwright/element.js +11 -10
  86. package/core/playwright/element.js.map +1 -1
  87. package/core/playwright/elements/checkbox-element.d.ts +2 -1
  88. package/core/playwright/elements/checkbox-element.d.ts.map +1 -1
  89. package/core/playwright/elements/checkbox-element.js +4 -1
  90. package/core/playwright/elements/checkbox-element.js.map +1 -1
  91. package/core/playwright/elements/index.d.ts +2 -2
  92. package/core/playwright/elements/index.d.ts.map +1 -1
  93. package/core/playwright/elements/index.js +2 -2
  94. package/core/playwright/elements/index.js.map +1 -1
  95. package/core/playwright/elements/radio-element.d.ts.map +1 -1
  96. package/core/playwright/elements/radio-element.js +1 -0
  97. package/core/playwright/elements/radio-element.js.map +1 -1
  98. package/core/playwright/elements/select-element.d.ts.map +1 -1
  99. package/core/playwright/elements/select-element.js.map +1 -1
  100. package/core/playwright/elements/slider-element.d.ts.map +1 -1
  101. package/core/playwright/elements/slider-element.js.map +1 -1
  102. package/core/playwright/group.d.ts.map +1 -1
  103. package/core/playwright/group.js.map +1 -1
  104. package/core/playwright/groups/radio-group.d.ts.map +1 -1
  105. package/core/playwright/groups/radio-group.js.map +1 -1
  106. package/core/playwright/index.d.ts +3 -2
  107. package/core/playwright/index.d.ts.map +1 -1
  108. package/core/playwright/index.js +2 -2
  109. package/core/playwright/index.js.map +1 -1
  110. package/core/playwright/page-fixture.d.ts.map +1 -1
  111. package/core/playwright/page-fixture.js.map +1 -1
  112. package/core/protractor/angular-materials/autocomplete-material.d.ts +0 -1
  113. package/core/protractor/angular-materials/autocomplete-material.d.ts.map +1 -1
  114. package/core/protractor/angular-materials/autocomplete-material.js.map +1 -1
  115. package/core/protractor/angular-materials/select-material.d.ts +0 -1
  116. package/core/protractor/angular-materials/select-material.d.ts.map +1 -1
  117. package/core/protractor/angular-materials/select-material.js +7 -6
  118. package/core/protractor/angular-materials/select-material.js.map +1 -1
  119. package/core/protractor/component-fixture.d.ts.map +1 -1
  120. package/core/protractor/component-fixture.js +6 -11
  121. package/core/protractor/component-fixture.js.map +1 -1
  122. package/core/protractor/element.d.ts.map +1 -1
  123. package/core/protractor/element.js +6 -4
  124. package/core/protractor/element.js.map +1 -1
  125. package/core/protractor/elements/checkbox-element.d.ts.map +1 -1
  126. package/core/protractor/elements/checkbox-element.js.map +1 -1
  127. package/core/protractor/elements/index.d.ts +1 -1
  128. package/core/protractor/elements/index.d.ts.map +1 -1
  129. package/core/protractor/elements/index.js +1 -1
  130. package/core/protractor/elements/index.js.map +1 -1
  131. package/core/protractor/elements/radio-element.d.ts.map +1 -1
  132. package/core/protractor/elements/radio-element.js +1 -0
  133. package/core/protractor/elements/radio-element.js.map +1 -1
  134. package/core/protractor/elements/select-element.d.ts +0 -1
  135. package/core/protractor/elements/select-element.d.ts.map +1 -1
  136. package/core/protractor/elements/select-element.js.map +1 -1
  137. package/core/protractor/group.d.ts.map +1 -1
  138. package/core/protractor/group.js.map +1 -1
  139. package/core/protractor/groups/radio-group.d.ts.map +1 -1
  140. package/core/protractor/groups/radio-group.js +1 -0
  141. package/core/protractor/groups/radio-group.js.map +1 -1
  142. package/core/protractor/index.d.ts +3 -2
  143. package/core/protractor/index.d.ts.map +1 -1
  144. package/core/protractor/index.js +2 -2
  145. package/core/protractor/index.js.map +1 -1
  146. package/core/protractor/page-fixture.d.ts.map +1 -1
  147. package/core/protractor/page-fixture.js.map +1 -1
  148. package/core/protractor/utils.d.ts.map +1 -1
  149. package/core/protractor/utils.js.map +1 -1
  150. package/esm/visual-test/utils.d.ts +2 -2
  151. package/esm/visual-test/utils.js +3 -3
  152. package/esm/visual-test/utils.js.map +1 -1
  153. package/kassette/update-dates-in-mocks.d.ts.map +1 -1
  154. package/kassette/update-dates-in-mocks.js +3 -3
  155. package/kassette/update-dates-in-mocks.js.map +1 -1
  156. package/localization/localization-mock.d.ts.map +1 -1
  157. package/localization/localization-mock.js.map +1 -1
  158. package/mocks/mock-component-generator.d.ts +1 -1
  159. package/mocks/mock-component-generator.d.ts.map +1 -1
  160. package/mocks/mock-component-generator.js +15 -14
  161. package/mocks/mock-component-generator.js.map +1 -1
  162. package/package.json +23 -18
  163. package/schematics/add-functions-to-fixture/helpers.d.ts +0 -2
  164. package/schematics/add-functions-to-fixture/helpers.d.ts.map +1 -1
  165. package/schematics/add-functions-to-fixture/helpers.js +2 -4
  166. package/schematics/add-functions-to-fixture/helpers.js.map +1 -1
  167. package/schematics/add-functions-to-fixture/index.d.ts.map +1 -1
  168. package/schematics/add-functions-to-fixture/index.js +6 -6
  169. package/schematics/add-functions-to-fixture/index.js.map +1 -1
  170. package/schematics/add-functions-to-fixture/schema.d.ts.map +1 -1
  171. package/schematics/fixture-to-component/index.d.ts.map +1 -1
  172. package/schematics/fixture-to-component/index.js +1 -1
  173. package/schematics/fixture-to-component/index.js.map +1 -1
  174. package/schematics/fixture-to-component/schema.d.ts.map +1 -1
  175. package/schematics/ng-add/fixture/index.d.ts.map +1 -1
  176. package/schematics/ng-add/fixture/index.js +4 -5
  177. package/schematics/ng-add/fixture/index.js.map +1 -1
  178. package/schematics/ng-add/index.d.ts.map +1 -1
  179. package/schematics/ng-add/index.js +16 -23
  180. package/schematics/ng-add/index.js.map +1 -1
  181. package/schematics/ng-add/playwright/index.d.ts.map +1 -1
  182. package/schematics/ng-add/playwright/index.js +5 -5
  183. package/schematics/ng-add/playwright/index.js.map +1 -1
  184. package/schematics/ng-add/schema.d.ts.map +1 -1
  185. package/schematics/ng-update/v9-0/index.d.ts.map +1 -1
  186. package/schematics/ng-update/v9-0/index.js +1 -1
  187. package/schematics/ng-update/v9-0/index.js.map +1 -1
  188. package/schematics/ng-update/v9-0/localization-imports/localization-imports-map.d.ts.map +1 -1
  189. package/schematics/ng-update/v9-0/localization-imports/localization-imports-map.js.map +1 -1
  190. package/schematics/ng-update/v9-0/localization-imports/localization-imports.d.ts.map +1 -1
  191. package/schematics/ng-update/v9-0/localization-imports/localization-imports.js +1 -2
  192. package/schematics/ng-update/v9-0/localization-imports/localization-imports.js.map +1 -1
  193. package/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.d.ts.map +1 -1
  194. package/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.js +13 -13
  195. package/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.js.map +1 -1
  196. package/schematics/playwright/sanity/index.d.ts.map +1 -1
  197. package/schematics/playwright/sanity/index.js.map +1 -1
  198. package/schematics/playwright/sanity/schema.d.ts.map +1 -1
  199. package/schematics/playwright/scenario/index.d.ts.map +1 -1
  200. package/schematics/playwright/scenario/index.js.map +1 -1
  201. package/schematics/playwright/scenario/schema.d.ts.map +1 -1
  202. package/store/testable-select.d.ts +1 -1
  203. package/store/testable-select.d.ts.map +1 -1
  204. package/store/testable-select.js +3 -2
  205. package/store/testable-select.js.map +1 -1
  206. package/store/typings.d.ts.map +1 -1
  207. package/store/typings.js.map +1 -1
  208. package/tools/index.d.ts +1 -1
  209. package/tools/index.d.ts.map +1 -1
  210. package/tools/index.js +1 -1
  211. package/tools/index.js.map +1 -1
  212. package/tools/path-replacement/path-replacement.d.ts.map +1 -1
  213. package/tools/path-replacement/path-replacement.js +6 -7
  214. package/tools/path-replacement/path-replacement.js.map +1 -1
  215. package/tools/protractor/fetch-manager/utils.d.ts.map +1 -1
  216. package/tools/protractor/fetch-manager/utils.js.map +1 -1
  217. package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts.map +1 -1
  218. package/tools/protractor/post-message-interceptor/post-message-interceptor.js.map +1 -1
  219. package/visual-test/utils.d.ts +2 -2
  220. package/visual-test/utils.js +3 -3
  221. package/visual-test/utils.js.map +1 -1
  222. package/visual-test/visual-test.d.ts +1 -1
  223. package/visual-test/visual-test.d.ts.map +1 -1
  224. package/visual-test/visual-test.js +6 -6
  225. package/visual-test/visual-test.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/playwright/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,qDAA2B;AAC3B,oDAA0B;AAC1B,kDAAwB;AACxB,mDAAyB;AACzB,yDAA+B;AAC/B,8DAAoC","sourcesContent":["export * from './component-fixture';\nexport * from './elements';\nexport * from './element';\nexport * from './group';\nexport * from './groups';\nexport * from './page-fixture';\nexport * from './angular-materials';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/playwright/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,8DAAoC;AACpC,oDAA0B;AAC1B,qDAA2B;AAC3B,kDAAwB;AACxB,mDAAyB;AACzB,yDAA+B","sourcesContent":["export * from './angular-materials';\nexport * from './component-fixture';\nexport * from './element';\nexport * from './elements';\nexport * from './group';\nexport * from './groups';\nexport * from './page-fixture';\nexport { SelectElementProfile } from '../elements';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"page-fixture.d.ts","sourceRoot":"","sources":["../../../src/core/playwright/page-fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAEnD;;GAEG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;gBAChH,WAAW,EAAE,CAAC;IAIb,QAAQ;CAGtB"}
1
+ {"version":3,"file":"page-fixture.d.ts","sourceRoot":"","sources":["../../../src/core/playwright/page-fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACX,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;gBAChH,WAAW,EAAE,CAAC;IAIb,QAAQ;CAGtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"page-fixture.js","sourceRoot":"","sources":["../../../src/core/playwright/page-fixture.ts"],"names":[],"mappings":";;;;AACA,yDAAwD;AAKxD;;GAEG;AACH;IAAuE,0CAAsB;IAC3F,wBAAY,WAAc;QACxB,OAAA,MAAK,YAAC,WAAW,CAAC,SAAC;IACrB,CAAC;IAEY,iCAAQ,GAArB;;;;4BACS,qBAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,EAAA;4BAAxD,sBAAO,SAAiD,EAAC;;;;KAC1D;IACH,qBAAC;AAAD,CAAC,AARD,CAAuE,uCAAmB,GAQzF;AARY,wCAAc","sourcesContent":["import {PageFixtureProfile} from '../page-fixture';\nimport {O3rComponentFixture} from './component-fixture';\nimport {O3rElement} from './element';\n\nexport {PageFixtureProfile} from '../page-fixture';\n\n/**\n * Implementation of the page fixture dedicated to Playwright.\n */\nexport class O3rPageFixture<V extends O3rElement = O3rElement> extends O3rComponentFixture<V> implements PageFixtureProfile<V> {\n constructor(rootElement: V) {\n super(rootElement);\n }\n\n public async getTitle() {\n return await this.rootElement.sourceElement.page.title();\n }\n}\n"]}
1
+ {"version":3,"file":"page-fixture.js","sourceRoot":"","sources":["../../../src/core/playwright/page-fixture.ts"],"names":[],"mappings":";;;;AAGA,yDAE6B;AAO7B;;GAEG;AACH;IAAuE,0CAAsB;IAC3F,wBAAY,WAAc;QACxB,OAAA,MAAK,YAAC,WAAW,CAAC,SAAC;IACrB,CAAC;IAEY,iCAAQ,GAArB;;;;4BACS,qBAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,EAAA;4BAAxD,sBAAO,SAAiD,EAAC;;;;KAC1D;IACH,qBAAC;AAAD,CAAC,AARD,CAAuE,uCAAmB,GAQzF;AARY,wCAAc","sourcesContent":["import {\n PageFixtureProfile,\n} from '../page-fixture';\nimport {\n O3rComponentFixture,\n} from './component-fixture';\nimport {\n O3rElement,\n} from './element';\n\nexport { PageFixtureProfile } from '../page-fixture';\n\n/**\n * Implementation of the page fixture dedicated to Playwright.\n */\nexport class O3rPageFixture<V extends O3rElement = O3rElement> extends O3rComponentFixture<V> implements PageFixtureProfile<V> {\n constructor(rootElement: V) {\n super(rootElement);\n }\n\n public async getTitle() {\n return await this.rootElement.sourceElement.page.title();\n }\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  import { ElementFinder } from 'protractor';
2
2
  import { MatAutocompleteProfile } from '../../angular-materials';
3
3
  import { O3rElement } from '../element';
4
- export { SelectElementProfile } from '../../elements';
5
4
  /**
6
5
  * Implementation dedicated to Protractor.
7
6
  * @deprecated Will be removed in v13, please use Playwright instead
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-material.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/autocomplete-material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,aAAa,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAEpD;;;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
+ {"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 +1 @@
1
- {"version":3,"file":"autocomplete-material.js","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/autocomplete-material.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AAEtD,sCAAsC;AAItC;;;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 {By, element, ElementFinder} from 'protractor';\nimport {MatAutocompleteProfile} from '../../angular-materials';\nimport {O3rElement} from '../element';\n\nexport {SelectElementProfile} from '../../elements';\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
+ {"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,7 +1,6 @@
1
1
  import { ElementFinder } from 'protractor';
2
2
  import { MatSelectProfile } from '../../angular-materials';
3
3
  import { O3rElement } from '../element';
4
- export { SelectElementProfile } from '../../elements';
5
4
  /**
6
5
  * Implementation dedicated to Protractor.
7
6
  * @deprecated Will be removed in v13, please use Playwright instead
@@ -1 +1 @@
1
- {"version":3,"file":"select-material.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/select-material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,aAAa,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAEpD;;;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;CAIhB"}
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"}
@@ -25,12 +25,12 @@ var MatSelect = /** @class */ (function (_super) {
25
25
  return [4 /*yield*/, protractor_1.element.all(protractor_1.By.css('mat-option')).asElementFinders_()];
26
26
  case 2:
27
27
  options = _a.sent();
28
- if (typeof options[index] !== 'undefined') {
29
- option = new element_1.O3rElement(options[index]);
30
- return [2 /*return*/, option.click()];
28
+ if (typeof options[index] === 'undefined') {
29
+ return [2 /*return*/, Promise.reject(new Error("Option with index ".concat(index, " not found in select element.")))];
31
30
  }
32
31
  else {
33
- return [2 /*return*/, Promise.reject("Option with index ".concat(index, " not found in select element."))];
32
+ option = new element_1.O3rElement(options[index]);
33
+ return [2 /*return*/, option.click()];
34
34
  }
35
35
  return [2 /*return*/];
36
36
  }
@@ -64,7 +64,7 @@ var MatSelect = /** @class */ (function (_super) {
64
64
  case 5:
65
65
  _i++;
66
66
  return [3 /*break*/, 3];
67
- case 6: return [2 /*return*/, Promise.reject("Option with value ".concat(value, " not found in select element."))];
67
+ case 6: return [2 /*return*/, Promise.reject(new Error("Option with value ".concat(value, " not found in select element.")))];
68
68
  }
69
69
  });
70
70
  });
@@ -96,13 +96,14 @@ var MatSelect = /** @class */ (function (_super) {
96
96
  case 5:
97
97
  _i++;
98
98
  return [3 /*break*/, 3];
99
- case 6: return [2 /*return*/, Promise.reject("Option with label ".concat(label, " not found in select element."))];
99
+ case 6: return [2 /*return*/, Promise.reject(new Error("Option with label ".concat(label, " not found in select element.")))];
100
100
  }
101
101
  });
102
102
  });
103
103
  };
104
104
  /** @inheritDoc */
105
105
  MatSelect.prototype.getValue = function () {
106
+ // eslint-disable-next-line no-console -- no other logger available
106
107
  console.warn('Usage of "getValue" is not recommended on Material Select elements. Use "getPlainText()" instead.');
107
108
  return _super.prototype.getValue.call(this);
108
109
  };
@@ -1 +1 @@
1
- {"version":3,"file":"select-material.js","sourceRoot":"","sources":["../../../../src/core/protractor/angular-materials/select-material.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AAEtD,sCAAsC;AAGtC;;;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;4BACpC,MAAM,GAAG,IAAI,oBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;4BAC9C,sBAAO,MAAM,CAAC,KAAK,EAAE,EAAC;wBACxB,CAAC;6BAAM,CAAC;4BACN,sBAA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,CAAC;4BACrC,sBAAO,MAAM,CAAC,KAAK,EAAE,EAAC;wBACxB,CAAC;;;wBAJe,IAAO,CAAA;;4BAOzB,sBAAO,OAAO,CAAC,MAAM,CAAC,4BAAqB,KAAK,kCAA+B,CAAC,EAAC;;;;KAClF;IAED,kBAAkB;IACX,4BAAQ,GAAf;QACE,OAAO,CAAC,IAAI,CAAC,mGAAmG,CAAC,CAAC;QAClH,OAAO,gBAAK,CAAC,QAAQ,WAAE,CAAC;IAC1B,CAAC;IACH,gBAAC;AAAD,CAAC,AAvDD,CAA+B,oBAAU,GAuDxC;AAvDY,8BAAS","sourcesContent":["import {By, element, ElementFinder} from 'protractor';\nimport {MatSelectProfile} from '../../angular-materials';\nimport {O3rElement} from '../element';\nexport {SelectElementProfile} from '../../elements';\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\n const options: ElementFinder[] = await element.all(By.css('mat-option')).asElementFinders_();\n if (typeof options[index] !== 'undefined') {\n const option = new O3rElement(options[index]);\n return option.click();\n } else {\n return Promise.reject(`Option with index ${index} not found in select element.`);\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\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(`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\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(`Option with label ${label} not found in select element.`);\n }\n\n /** @inheritDoc */\n public getValue() {\n console.warn('Usage of \"getValue\" is not recommended on Material Select elements. Use \"getPlainText()\" instead.');\n return super.getValue();\n }\n}\n"]}
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,Y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CAAC,IAAI,CAAC,mGAAmG,CAAC,CAAC;QAClH,OAAO,gBAAK,CAAC,QAAQ,WAAE,CAAC;IAC1B,CAAC;IACH,gBAAC;AAAD,CAAC,AAxDD,CAA+B,oBAAU,GAwDxC;AAxDY,8BAAS","sourcesContent":["import {\n By,\n element,\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"component-fixture.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/component-fixture.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGxD;;GAEG;AACH,YAAY,EAAE,uBAAuB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEtG;;;GAGG;AACH,qBAAa,mBAAmB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,YAAW,uBAAuB,CAAC,CAAC,CAAC;IACvG;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAE1B;;;;OAIG;gBACS,WAAW,CAAC,EAAE,CAAC;IAI3B;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAOlG;;;;;OAKG;cACa,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAWpH;;;;;;;;OAQG;cACa,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,kBAAkB,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,EACtD,OAAO,GAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC,OAAO,CAAC,EAAE,MAA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,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIpF"}
1
+ {"version":3,"file":"component-fixture.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/component-fixture.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,uBAAuB,EACxB,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EACL,UAAU,EACV,qBAAqB,EACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,QAAQ,EACR,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAKjB;;GAEG;AACH,YAAY,EAAE,uBAAuB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEtG;;;GAGG;AACH,qBAAa,mBAAmB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,YAAW,uBAAuB,CAAC,CAAC,CAAC;IACvG;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAE1B;;;;OAIG;gBACS,WAAW,CAAC,EAAE,CAAC;IAI3B;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAOlG;;;;;OAKG;cACa,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAUpH;;;;;;;;OAQG;cACa,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,kBAAkB,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,EACtD,OAAO,GAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC,OAAO,CAAC,EAAE,MAAM,CAAC;KACb,GACL,OAAO,CAAC,UAAU,G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C,OAAO,CAAC;CAIpF"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.O3rComponentFixture = void 0;
4
4
  var tslib_1 = require("tslib");
5
- /* eslint-disable new-cap */
6
5
  var protractor_1 = require("protractor");
7
6
  var index_1 = require("../../errors/index");
8
7
  var helpers_1 = require("../helpers");
@@ -68,17 +67,11 @@ var O3rComponentFixture = /** @class */ (function () {
68
67
  if (options === void 0) { options = {}; }
69
68
  return tslib_1.__generator(this, function (_a) {
70
69
  switch (_a.label) {
71
- case 0:
72
- if (!(options.index !== undefined)) return [3 /*break*/, 2];
73
- return [4 /*yield*/, this.queryNth(selector, options.index, elementConstructor)];
70
+ case 0: return [4 /*yield*/, (options.index === undefined
71
+ ? this.query(selector, elementConstructor)
72
+ : this.queryNth(selector, options.index, elementConstructor))];
74
73
  case 1:
75
74
  queryElement = _a.sent();
76
- return [3 /*break*/, 4];
77
- case 2: return [4 /*yield*/, this.query(selector, elementConstructor)];
78
- case 3:
79
- queryElement = _a.sent();
80
- _a.label = 4;
81
- case 4:
82
75
  if (options.shouldThrowIfNotPresent) {
83
76
  return [2 /*return*/, this.throwOnUndefinedElement(queryElement, options.timeout)];
84
77
  }
@@ -193,10 +186,11 @@ var O3rComponentFixture = /** @class */ (function () {
193
186
  case 0:
194
187
  sourceElement = this.rootElement && this.rootElement.sourceElement;
195
188
  cssSelector = protractor_1.By.css(selector);
196
- return [4 /*yield*/, (sourceElement || protractor_1.browser).isElementPresent(cssSelector)];
189
+ return [4 /*yield*/, (sourceElement ? sourceElement.isElementPresent(cssSelector) : protractor_1.browser.isElementPresent(cssSelector))];
197
190
  case 1:
198
191
  isElPresent = _a.sent();
199
192
  if (!isElPresent) {
193
+ // eslint-disable-next-line no-console -- no other logger available
200
194
  console.warn("No component matching ".concat(selector, " found"));
201
195
  return [2 /*return*/];
202
196
  }
@@ -217,6 +211,7 @@ var O3rComponentFixture = /** @class */ (function () {
217
211
  return [4 /*yield*/, item.isPresent()];
218
212
  case 1:
219
213
  if (!(_a.sent())) {
214
+ // eslint-disable-next-line no-console -- no other logger available
220
215
  console.warn("No component matching ".concat(selector, ":nth(").concat(index, ") found"));
221
216
  return [2 /*return*/];
222
217
  }
@@ -1 +1 @@
1
- {"version":3,"file":"component-fixture.js","sourceRoot":"","sources":["../../../src/core/protractor/component-fixture.ts"],"names":[],"mappings":";;;;AAAA,4BAA4B;AAC5B,yCAAiE;AACjE,4CAAuD;AAGvD,sCAAyC;AACzC,qCAA8D;AAE9D,iCAAyC;AAOzC;;;GAGG;AACH;IAME;;;;OAIG;IACH,6BAAY,WAAe;QACzB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACO,qDAAuB,GAAjC,UAAwD,MAAU,EAAE,QAAiB;QACnF,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACnE,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACa,8CAAgB,GAAhC,UAAuD,MAA8B,EAAE,OAAgB;;;;gBACrG,sBAAO,IAAA,qBAAW,EAAC,MAAM,EAAE,OAAO,CAAC;yBAChC,IAAI,CAAC,UAAC,EAAE;wBACP,IAAI,CAAC,EAAE,EAAE,CAAC;4BACR,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,KAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;wBACnE,CAAC;wBACD,OAAO,EAAE,CAAC;oBACZ,CAAC,CAAC,EAAC;;;KACN;IAGD;;;;;;;;OAQG;IACa,8CAAgB,GAAhC;oEACE,QAAgB,EAChB,kBAAsD,EACtD,OAIM;;YAJN,wBAAA,EAAA,YAIM;;;;6BAGF,CAAA,OAAO,CAAC,KAAK,KAAK,SAAS,CAAA,EAA3B,wBAA2B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,qBAAM,IAAA,sBAAc,EAAC,SAAS,CAAC,EAAA;;wBAA1C,QAAQ,GAAG,SAA+B;6BAE5C,SAAS,EAAT,wBAAS;wBACL,KAAK,GAAG,IAAI,SAAS,CAAC,QAAe,CAAC,CAAC;wBAC7B,qBAAM,KAAK,CAAC,YAAY,EAAE,EAAA;;wBAApC,OAAO,GAAG,SAA0B;wBAE1C,IAAI,CAAC,OAAO,EAAE,CAAC;4BACb,MAAM,IAAI,yBAAiB,CAAC,wBAAwB,CAAC,CAAC;wBACxD,CAAC;wBACD,sBAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAC;4BAGhC,sBAAO,QAAQ,EAAC;;;;KACjB;IAED,kBAAkB;IACX,wCAAU,GAAjB;QACE,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,kBAAkB;IACX,8CAAgB,GAAvB;QACE,OAAO,OAAO,CAAC,OAAO,CAAC,EAAC,KAAK,EAAE,CAAC,IAAI,CAAC,EAAC,CAAC,CAAC;IAC1C,CAAC;IAED,kBAAkB;IACL,6CAAe,GAA5B,UAA6B,QAAgB,EAAE,QAAiB;;;;;;wBACxD,aAAa,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC;wBAChE,qBAAM,CAAC,aAAa,IAAI,oBAAO,CAAC,CAAC,gBAAgB,CAAC,eAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAA;4BAA5E,sBAAO,CAAC,CAAC,SAAmE,CAAC,EAAC;;;;KAC/E;IACH,0BAAC;AAAD,CAAC,AAjND,IAiNC;AAjNY,kDAAmB","sourcesContent":["/* eslint-disable new-cap */\nimport { browser, By, element, ElementFinder } from 'protractor';\nimport { FixtureUsageError } from '../../errors/index';\n\nimport type { ComponentFixtureProfile } from '../component-fixture';\nimport { withTimeout } from '../helpers';\nimport { O3rElement, O3rElementConstructor } from './element';\nimport { O3rGroup, O3rGroupConstructor } from './group';\nimport { convertPromise } from './utils';\n\n/**\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport type { ComponentFixtureProfile, Constructable, FixtureWithCustom } from '../component-fixture';\n\n/**\n * Implementation of the fixture dedicated to protractor, hence using the webdriver to interact with the dom.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rComponentFixture<V extends O3rElement = O3rElement> implements ComponentFixtureProfile<V> {\n /**\n * DOM element linked to the fixture.\n */\n protected rootElement?: V;\n\n /**\n * Root element of this fixture. Optional in a Protractor.\n * All further queries will be applied to the element tree if any, otherwise they will be applied to the whole DOM.\n * @param rootElement\n */\n constructor(rootElement?: V) {\n this.rootElement = rootElement;\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param elemnt ElementProfile to test\n * @param _timeout specific timeout that will throw when reach\n */\n protected throwOnUndefinedElement<T extends O3rElement>(elemnt?: T, _timeout?: number): Promise<T> {\n if (!elemnt) {\n throw new Error('Element not found in ' + this.constructor.name);\n }\n return Promise.resolve(elemnt);\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param elemnt ElementProfile to test\n * @param timeout specific timeout that will throw when reach\n */\n protected async throwOnUndefined<T extends O3rElement>(elemnt: Promise<T | undefined>, timeout?: number): Promise<T> {\n return withTimeout(elemnt, timeout)\n .then((el) => {\n if (!el) {\n throw new Error('Element not found in ' + this.constructor.name);\n }\n return el;\n });\n }\n\n\n /**\n * Get the element associated to the selector if present\n * @param selector Selector to access the element\n * @param elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options Options supported\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async queryWithOptions(\n selector: string,\n elementConstructor?: O3rElementConstructor<O3rElement>,\n options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}\n ): Promise<O3rElement | undefined> {\n let queryElement: O3rElement | undefined;\n if (options.index !== undefined) {\n queryElement = await this.queryNth(selector, options.index, elementConstructor as any);\n } else {\n queryElement = await this.query(selector, elementConstructor as any);\n }\n if (options.shouldThrowIfNotPresent) {\n return this.throwOnUndefinedElement<O3rElement>(queryElement, options.timeout);\n }\n return queryElement;\n }\n\n /**\n * Get text from the element associated to the given selector, or undefined if the element is not found or not visible\n * @param selector Selector to access the element\n * @param options Options supported\n * @param options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async getText<T extends O3rElement>(selector: string, options: {\n elementConstructor?: O3rElementConstructor<T> | undefined;\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}): Promise<string | undefined> {\n const getTextElement = await this.queryWithOptions(selector, options.elementConstructor, options);\n if (!getTextElement || !await getTextElement.isVisible()) {\n return;\n }\n return await getTextElement.getText();\n }\n\n /**\n * Check if the element associated to the given selector is visible\n * @param selector Selector to access the element\n * @param options Options supported\n * @param options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async isVisible<T extends O3rElement>(selector: string, options: {\n elementConstructor?: O3rElementConstructor<T> | undefined;\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}): Promise<boolean> {\n const isVisibleElement = await this.queryWithOptions(selector, options.elementConstructor, options);\n return !!isVisibleElement && await isVisibleElement.isVisible();\n }\n\n /**\n * Click on the element associated to the given selector if it exists and is visible\n * @param selector Selector to access the element\n * @param options Options supported\n * @param options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async click<T extends O3rElement>(selector: string, options: {\n elementConstructor?: O3rElementConstructor<T> | undefined;\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}): Promise<void> {\n const clickElement = await this.queryWithOptions(selector, options.elementConstructor, options);\n if (!!clickElement && await clickElement.isVisible()) {\n await clickElement.click();\n }\n }\n\n /** @inheritdoc */\n public async query(selector: string, returnType?: undefined): Promise<O3rElement | undefined>;\n public async query<T extends O3rElement>(selector: string, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n public async query<T extends O3rElement>(selector: string, returnType: O3rElementConstructor<T> | undefined): Promise<T | O3rElement | undefined> {\n const sourceElement = this.rootElement && this.rootElement.sourceElement;\n const cssSelector = By.css(selector);\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n const isElPresent = await (sourceElement! || browser).isElementPresent(cssSelector);\n if (!isElPresent) {\n console.warn(`No component matching ${selector} found`);\n return;\n }\n const queriedElement = sourceElement ? sourceElement.element(cssSelector) : element(cssSelector);\n return returnType ? new returnType(queriedElement) : new O3rElement(queriedElement);\n }\n\n /** @inheritdoc */\n public async queryNth(selector: string, index: number, returnType?: undefined): Promise<O3rElement | undefined>;\n public async queryNth<T extends O3rElement>(selector: string, index: number, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n public async queryNth<T extends O3rElement>(selector: string, index: number, returnType: O3rElementConstructor<T> | undefined): Promise<T | O3rElement | undefined> {\n const sourceElement = this.rootElement && this.rootElement.sourceElement;\n const item = (sourceElement || element).all(By.css(selector)).get(index);\n if (!(await item.isPresent())) {\n console.warn(`No component matching ${selector}:nth(${index}) found`);\n return;\n }\n return new (returnType || O3rElement)(item);\n }\n\n /** @inheritdoc */\n public async queryAll(_selector: string, _returnType?: undefined, groupType?: undefined, timeout?: number): Promise<O3rElement[]>;\n public async queryAll<T extends O3rElement>(selector: string, returnType: O3rElementConstructor<T>, groupType?: undefined, timeout?: number): Promise<T[]>;\n public async queryAll<T extends O3rElement, K extends O3rGroup<T>>(selector: string, returnType: O3rElementConstructor<T>, groupType: O3rGroupConstructor<K, T>, timeout?: number): Promise<K>;\n public async queryAll<T extends O3rElement, K extends O3rGroup<T>>(\n selector: string,\n returnType: O3rElementConstructor<T> | undefined,\n groupType: O3rGroupConstructor<K, T> | undefined,\n _timeout?: number\n ): Promise<(T | O3rElement)[] | K> {\n const pElements = (this.rootElement ? this.rootElement.sourceElement.all(By.css(selector)) : element.all(By.css(selector)))\n .filter((item) => typeof item !== 'undefined')\n .then((elf: ElementFinder[]) => elf.map((item) => (returnType ? new returnType(item) : new O3rElement(item))));\n const elements = await convertPromise(pElements);\n\n if (groupType) {\n const group = new groupType(elements as T[]);\n const isValid = await group.isValidGroup();\n\n if (!isValid) {\n throw new FixtureUsageError('invalid group of items');\n }\n return Promise.resolve(group);\n }\n\n return elements;\n }\n\n /** @inheritdoc */\n public getElement() {\n return this.rootElement;\n }\n\n /** @inheritdoc */\n public getSubComponents(): Promise<{[componentName: string]: ComponentFixtureProfile[]}> {\n return Promise.resolve({block: [this]});\n }\n\n /** @inheritDoc */\n public async queryNotPresent(selector: string, _timeout?: number): Promise<boolean> {\n const sourceElement = this.rootElement && this.rootElement.sourceElement;\n return !(await (sourceElement || browser).isElementPresent(By.css(selector)));\n }\n}\n"]}
1
+ {"version":3,"file":"component-fixture.js","sourceRoot":"","sources":["../../../src/core/protractor/component-fixture.ts"],"names":[],"mappings":";;;;AAAA,yCAKoB;AACpB,4CAE4B;AAI5B,sCAEoB;AACpB,qCAGmB;AAKnB,iCAEiB;AAOjB;;;GAGG;AACH;IAME;;;;OAIG;IACH,6BAAY,WAAe;QACzB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACO,qDAAuB,GAAjC,UAAwD,MAAU,EAAE,QAAiB;QACnF,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,WAAW,CAAC,IAA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AAO,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,kBAAkB;IACL,6CAAe,GAA5B,UAA6B,QAAgB,EAAE,QAAiB;;;;;;wBACxD,aAAa,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC;wBAChE,qBAAM,CAAC,aAAa,IAAI,oBAAO,CAAC,CAAC,gBAAgB,CAAC,eAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAA;4BAA5E,sBAAO,CAAC,CAAC,SAAmE,CAAC,EAAC;;;;KAC/E;IACH,0BAAC;AAAD,CAAC,AAhND,IAgNC;AAhNY,kDAAmB","sourcesContent":["import {\n browser,\n By,\n element,\n ElementFinder,\n} from 'protractor';\nimport {\n FixtureUsageError,\n} from '../../errors/index';\nimport type {\n ComponentFixtureProfile,\n} from '../component-fixture';\nimport {\n withTimeout,\n} from '../helpers';\nimport {\n O3rElement,\n O3rElementConstructor,\n} from './element';\nimport {\n O3rGroup,\n O3rGroupConstructor,\n} from './group';\nimport {\n convertPromise,\n} from './utils';\n\n/**\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport type { ComponentFixtureProfile, Constructable, FixtureWithCustom } from '../component-fixture';\n\n/**\n * Implementation of the fixture dedicated to protractor, hence using the webdriver to interact with the dom.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rComponentFixture<V extends O3rElement = O3rElement> implements ComponentFixtureProfile<V> {\n /**\n * DOM element linked to the fixture.\n */\n protected rootElement?: V;\n\n /**\n * Root element of this fixture. Optional in a Protractor.\n * All further queries will be applied to the element tree if any, otherwise they will be applied to the whole DOM.\n * @param rootElement\n */\n constructor(rootElement?: V) {\n this.rootElement = rootElement;\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param elemnt ElementProfile to test\n * @param _timeout specific timeout that will throw when reach\n */\n protected throwOnUndefinedElement<T extends O3rElement>(elemnt?: T, _timeout?: number): Promise<T> {\n if (!elemnt) {\n throw new Error('Element not found in ' + this.constructor.name);\n }\n return Promise.resolve(elemnt);\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param elemnt ElementProfile to test\n * @param timeout specific timeout that will throw when reach\n */\n protected async throwOnUndefined<T extends O3rElement>(elemnt: Promise<T | undefined>, timeout?: number): Promise<T> {\n return withTimeout(elemnt, timeout)\n .then((el) => {\n if (!el) {\n throw new Error('Element not found in ' + this.constructor.name);\n }\n return el;\n });\n }\n\n /**\n * Get the element associated to the selector if present\n * @param selector Selector to access the element\n * @param elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options Options supported\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async queryWithOptions(\n selector: string,\n elementConstructor?: O3rElementConstructor<O3rElement>,\n options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}\n ): Promise<O3rElement | undefined> {\n const queryElement: O3rElement | undefined = await (\n options.index === undefined\n ? this.query(selector, elementConstructor as any)\n : this.queryNth(selector, options.index, elementConstructor as any)\n );\n if (options.shouldThrowIfNotPresent) {\n return this.throwOnUndefinedElement<O3rElement>(queryElement, options.timeout);\n }\n return queryElement;\n }\n\n /**\n * Get text from the element associated to the given selector, or undefined if the element is not found or not visible\n * @param selector Selector to access the element\n * @param options Options supported\n * @param options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async getText<T extends O3rElement>(selector: string, options: {\n elementConstructor?: O3rElementConstructor<T> | undefined;\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}): Promise<string | undefined> {\n const getTextElement = await this.queryWithOptions(selector, options.elementConstructor, options);\n if (!getTextElement || !await getTextElement.isVisible()) {\n return;\n }\n return await getTextElement.getText();\n }\n\n /**\n * Check if the element associated to the given selector is visible\n * @param selector Selector to access the element\n * @param options Options supported\n * @param options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async isVisible<T extends O3rElement>(selector: string, options: {\n elementConstructor?: O3rElementConstructor<T> | undefined;\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}): Promise<boolean> {\n const isVisibleElement = await this.queryWithOptions(selector, options.elementConstructor, options);\n return !!isVisibleElement && await isVisibleElement.isVisible();\n }\n\n /**\n * Click on the element associated to the given selector if it exists and is visible\n * @param selector Selector to access the element\n * @param options Options supported\n * @param options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement\n * @param options.index index Select the element associated to the index\n * @param options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present\n * @param options.timeout Duration to wait for the element to be present before it throws\n */\n protected async click<T extends O3rElement>(selector: string, options: {\n elementConstructor?: O3rElementConstructor<T> | undefined;\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}): Promise<void> {\n const clickElement = await this.queryWithOptions(selector, options.elementConstructor, options);\n if (!!clickElement && await clickElement.isVisible()) {\n await clickElement.click();\n }\n }\n\n /** @inheritdoc */\n public async query(selector: string, returnType?: undefined): Promise<O3rElement | undefined>;\n public async query<T extends O3rElement>(selector: string, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n public async query<T extends O3rElement>(selector: string, returnType: O3rElementConstructor<T> | undefined): Promise<T | O3rElement | undefined> {\n const sourceElement = this.rootElement && this.rootElement.sourceElement;\n const cssSelector = By.css(selector);\n const isElPresent = await (sourceElement ? sourceElement.isElementPresent(cssSelector) : browser.isElementPresent(cssSelector));\n if (!isElPresent) {\n // eslint-disable-next-line no-console -- no other logger available\n console.warn(`No component matching ${selector} found`);\n return;\n }\n const queriedElement = sourceElement ? sourceElement.element(cssSelector) : element(cssSelector);\n return returnType ? new returnType(queriedElement) : new O3rElement(queriedElement);\n }\n\n /** @inheritdoc */\n public async queryNth(selector: string, index: number, returnType?: undefined): Promise<O3rElement | undefined>;\n public async queryNth<T extends O3rElement>(selector: string, index: number, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n public async queryNth<T extends O3rElement>(selector: string, index: number, returnType: O3rElementConstructor<T> | undefined): Promise<T | O3rElement | undefined> {\n const sourceElement = this.rootElement && this.rootElement.sourceElement;\n const item = (sourceElement || element).all(By.css(selector)).get(index);\n if (!(await item.isPresent())) {\n // eslint-disable-next-line no-console -- no other logger available\n console.warn(`No component matching ${selector}:nth(${index}) found`);\n return;\n }\n return new (returnType || O3rElement)(item);\n }\n\n /** @inheritdoc */\n public async queryAll(_selector: string, _returnType?: undefined, groupType?: undefined, timeout?: number): Promise<O3rElement[]>;\n public async queryAll<T extends O3rElement>(selector: string, returnType: O3rElementConstructor<T>, groupType?: undefined, timeout?: number): Promise<T[]>;\n public async queryAll<T extends O3rElement, K extends O3rGroup<T>>(selector: string, returnType: O3rElementConstructor<T>, groupType: O3rGroupConstructor<K, T>, timeout?: number): Promise<K>;\n public async queryAll<T extends O3rElement, K extends O3rGroup<T>>(\n selector: string,\n returnType: O3rElementConstructor<T> | undefined,\n groupType: O3rGroupConstructor<K, T> | undefined,\n _timeout?: number\n ): Promise<(T | O3rElement)[] | K> {\n const pElements = (this.rootElement ? this.rootElement.sourceElement.all(By.css(selector)) : element.all(By.css(selector)))\n .filter((item) => typeof item !== 'undefined')\n .then((elf: ElementFinder[]) => elf.map((item) => (returnType ? new returnType(item) : new O3rElement(item))));\n const elements = await convertPromise(pElements);\n\n if (groupType) {\n const group = new groupType(elements as T[]);\n const isValid = await group.isValidGroup();\n\n if (!isValid) {\n throw new FixtureUsageError('invalid group of items');\n }\n return Promise.resolve(group);\n }\n\n return elements;\n }\n\n /** @inheritdoc */\n public getElement() {\n return this.rootElement;\n }\n\n /** @inheritdoc */\n public getSubComponents(): Promise<{ [componentName: string]: ComponentFixtureProfile[] }> {\n return Promise.resolve({ block: [this] });\n }\n\n /** @inheritDoc */\n public async queryNotPresent(selector: string, _timeout?: number): Promise<boolean> {\n const sourceElement = this.rootElement && this.rootElement.sourceElement;\n return !(await (sourceElement || browser).isElementPresent(By.css(selector)));\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,aAAa,EAAC,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC/C,gCAAgC;IACzB,aAAa,EAAE,aAAa,CAAC;gBAExB,aAAa,EAAE,aAAa,GAAG,UAAU;IAIrD,kBAAkB;IACX,OAAO;IAId,kBAAkB;IACL,YAAY;IAKzB,kBAAkB;IACX,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIlD,kBAAkB;IACX,SAAS;IAShB,kBAAkB;IACL,QAAQ;IAKrB,kBAAkB;IACL,QAAQ,CAAC,KAAK,EAAE,MAAM;IAQnC,kBAAkB;IACL,UAAU;IAQvB,kBAAkB;IACL,KAAK;IAKlB,kBAAkB;IACL,SAAS;IAItB,kBAAkB;IACL,YAAY,CAAC,aAAa,EAAE,MAAM;CAIhD;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,IAAI,KAAK,aAAa,EAAE,aAAa,GAAG,UAAU,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACd,MAAM,YAAY,CAAC;AAOpB,OAAO,EACL,cAAc,EACf,MAAM,YAAY,CAAC;AAKpB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;;GAGG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC/C,gCAAgC;IACzB,aAAa,EAAE,aAAa,CAAC;gBAExB,aAAa,EAAE,aAAa,GAAG,UAAU;IAIrD,kBAAkB;IACX,OAAO;IAId,kBAAkB;IACL,YAAY;IAKzB,kBAAkB;IACX,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIlD,kBAAkB;IACX,SAAS;IAShB,kBAAkB;IACL,QAAQ;IAKrB,kBAAkB;IACL,QAAQ,CAAC,KAAK,EAAE,MAAM;IAQnC,kBAAkB;IACL,UAAU;IASvB,kBAAkB;IACL,KAAK;IAKlB,kBAAkB;IACL,SAAS;IAItB,kBAAkB;IACL,YAAY,CAAC,aAAa,EAAE,MAAM;CAIhD;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,IAAI,KAAK,aAAa,EAAE,aAAa,GAAG,UAAU,KAAK,CAAC,CAAC"}
@@ -27,7 +27,7 @@ var O3rElement = /** @class */ (function () {
27
27
  case 0: return [4 /*yield*/, this.getText()];
28
28
  case 1:
29
29
  innerText = _a.sent();
30
- return [2 /*return*/, Promise.resolve(innerText ? innerText.replace(/(?:\r\n|\r|\n)/g, ' ').replace(/\s\s+/g, ' ').trim() : undefined)];
30
+ return [2 /*return*/, Promise.resolve(innerText ? innerText.replace(/\r\n|\r|\n/g, ' ').replace(/\s\s+/g, ' ').trim() : undefined)];
31
31
  }
32
32
  });
33
33
  });
@@ -52,7 +52,7 @@ var O3rElement = /** @class */ (function () {
52
52
  case 0: return [4 /*yield*/, this.sourceElement.getAttribute('value')];
53
53
  case 1:
54
54
  value = _a.sent();
55
- return [2 /*return*/, value !== null ? value : undefined];
55
+ return [2 /*return*/, value === null ? undefined : value];
56
56
  }
57
57
  });
58
58
  });
@@ -90,8 +90,10 @@ var O3rElement = /** @class */ (function () {
90
90
  case 1:
91
91
  currentValue = _b.sent();
92
92
  if (!(currentValue !== undefined)) return [3 /*break*/, 3];
93
- return [4 /*yield*/, (_a = this.sourceElement).sendKeys.apply(_a, Array(currentValue.length + 1).fill(ptor_1.protractor.Key.BACK_SPACE))];
93
+ // eslint-disable-next-line unicorn/no-new-array -- Required for array initialization purpose
94
+ return [4 /*yield*/, (_a = this.sourceElement).sendKeys.apply(_a, (new Array(currentValue.length + 1).fill(ptor_1.protractor.Key.BACK_SPACE)))];
94
95
  case 2:
96
+ // eslint-disable-next-line unicorn/no-new-array -- Required for array initialization purpose
95
97
  _b.sent();
96
98
  _b.label = 3;
97
99
  case 3: return [2 /*return*/];
@@ -132,7 +134,7 @@ var O3rElement = /** @class */ (function () {
132
134
  case 0: return [4 /*yield*/, this.sourceElement.getAttribute(attributeName)];
133
135
  case 1:
134
136
  attribute = _a.sent();
135
- return [2 /*return*/, attribute !== null ? attribute : undefined];
137
+ return [2 /*return*/, attribute === null ? undefined : attribute];
136
138
  }
137
139
  });
138
140
  });
@@ -1 +1 @@
1
- {"version":3,"file":"element.js","sourceRoot":"","sources":["../../../src/core/protractor/element.ts"],"names":[],"mappings":";;;;AAAA,yCAAkD;AAClD,8CAAyD;AACzD,qDAA0D;AAE1D,iCAAuC;AAIvC;;;GAGG;AACH;IAIE,oBAAY,aAAyC;QACnD,IAAI,CAAC,aAAa,GAAG,aAAa,YAAY,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC;IACzG,CAAC;IAED,kBAAkB;IACX,4BAAO,GAAd;QACE,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,kBAAkB;IACL,iCAAY,GAAzB;;;;;4BACoB,qBAAM,IAAI,CAAC,OAAO,EAAE,EAAA;;wBAAh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,IAAI,CAAC,QAAQ,EAAE,EAAA;;wBAApC,YAAY,GAAG,SAAqB;6BAEtC,CAAA,YAAY,KAAK,SAAS,CAAA,EAA1B,wBAA0B;wBAC5B,qBAAM,CAAA,KAAA,IAAI,CAAC,aAAa,CAAA,CAAC,QAAQ,WAAI,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAC;;wBAA9F,SAA8F,CAAC;;;;;;KAElG;IAED,kBAAkB;IACL,0BAAK,GAAlB;;;;4BACE,qBAAM,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,EAAA;;wBAAhC,SAAgC,CAAC;wBACjC,sBAAO,IAAA,+BAAkB,GAAE,EAAC;;;;KAC7B;IAED,kBAAkB;IACL,8BAAS,GAAtB;;;;4BACS,qBAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,EAAA;4BAA7C,sBAAO,SAAsC,EAAC;;;;KAC/C;IAED,kBAAkB;IACL,iCAAY,GAAzB,UAA0B,aAAqB;;;;;4BAC3B,qBAAM,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,aAAa,CAAC,EAAA;;wBAAhE,SAAS,GAAG,SAAoD;wBACtE,sBAAO,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAC;;;;KACnD;IACH,iBAAC;AAAD,CAAC,AA1ED,IA0EC;AA1EY,gCAAU","sourcesContent":["import {browser, ElementFinder} from 'protractor';\nimport {protractor as ptor} from 'protractor/built/ptor';\nimport {waitForOtterStable} from '../../tools/protractor';\nimport {ElementProfile} from '../element';\nimport {convertPromise} from './utils';\n\nexport {ElementProfile} from '../element';\n\n/**\n * Implementation dedicated to protractor.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rElement implements ElementProfile {\n /** Protractor ElementProfile */\n public sourceElement: ElementFinder;\n\n constructor(sourceElement: ElementFinder | O3rElement) {\n this.sourceElement = sourceElement instanceof O3rElement ? sourceElement.sourceElement : sourceElement;\n }\n\n /** @inheritdoc */\n public getText() {\n return convertPromise(this.sourceElement.getText());\n }\n\n /** @inheritdoc */\n public async getPlainText() {\n const innerText = await this.getText();\n return Promise.resolve(innerText ? innerText.replace(/(?:\\r\\n|\\r|\\n)/g, ' ').replace(/\\s\\s+/g, ' ').trim() : undefined);\n }\n\n /** @inheritdoc */\n public getInnerHTML(): Promise<string | undefined> {\n return convertPromise(this.sourceElement.getInnerHtml());\n }\n\n /** @inheritdoc */\n public mouseOver() {\n return convertPromise(\n browser\n .actions()\n .mouseMove(this.sourceElement)\n .perform()\n );\n }\n\n /** @inheritdoc */\n public async getValue() {\n const value = await this.sourceElement.getAttribute('value');\n return value !== null ? value : undefined;\n }\n\n /** @inheritdoc */\n public async setValue(input: string) {\n // Clears the value in the field\n await this.clearValue();\n await this.sourceElement.sendKeys(input);\n await this.sourceElement.sendKeys(ptor.Key.TAB);\n return waitForOtterStable();\n }\n\n /** @inheritdoc */\n public async clearValue() {\n const currentValue = await this.getValue();\n\n if (currentValue !== undefined) {\n await this.sourceElement.sendKeys(...Array(currentValue.length + 1).fill(ptor.Key.BACK_SPACE));\n }\n }\n\n /** @inheritdoc */\n public async click() {\n await this.sourceElement.click();\n return waitForOtterStable();\n }\n\n /** @inheritdoc */\n public async isVisible() {\n return await this.sourceElement.isDisplayed();\n }\n\n /** @inheritdoc */\n public async getAttribute(attributeName: string) {\n const attribute = await this.sourceElement.getAttribute(attributeName);\n return attribute !== null ? attribute : undefined;\n }\n}\n\n/**\n * Constructor of a O3rElement\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport type O3rElementConstructor<T extends ElementProfile> = new (sourceElement: ElementFinder | O3rElement) => T;\n"]}
1
+ {"version":3,"file":"element.js","sourceRoot":"","sources":["../../../src/core/protractor/element.ts"],"names":[],"mappings":";;;;AAAA,yCAGoB;AACpB,8CAE+B;AAC/B,qDAEgC;AAIhC,iCA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AAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAC;;;;KACnD;IACH,iBAAC;AAAD,CAAC,AA3ED,IA2EC;AA3EY,gCAAU","sourcesContent":["import {\n browser,\n ElementFinder,\n} from 'protractor';\nimport {\n protractor as ptor,\n} from 'protractor/built/ptor';\nimport {\n waitForOtterStable,\n} from '../../tools/protractor';\nimport {\n ElementProfile,\n} from '../element';\nimport {\n convertPromise,\n} from './utils';\n\nexport { ElementProfile } from '../element';\n\n/**\n * Implementation dedicated to protractor.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rElement implements ElementProfile {\n /** Protractor ElementProfile */\n public sourceElement: ElementFinder;\n\n constructor(sourceElement: ElementFinder | O3rElement) {\n this.sourceElement = sourceElement instanceof O3rElement ? sourceElement.sourceElement : sourceElement;\n }\n\n /** @inheritdoc */\n public getText() {\n return convertPromise(this.sourceElement.getText());\n }\n\n /** @inheritdoc */\n public async getPlainText() {\n const innerText = await this.getText();\n return Promise.resolve(innerText ? innerText.replace(/\\r\\n|\\r|\\n/g, ' ').replace(/\\s\\s+/g, ' ').trim() : undefined);\n }\n\n /** @inheritdoc */\n public getInnerHTML(): Promise<string | undefined> {\n return convertPromise(this.sourceElement.getInnerHtml());\n }\n\n /** @inheritdoc */\n public mouseOver() {\n return convertPromise(\n browser\n .actions()\n .mouseMove(this.sourceElement)\n .perform()\n );\n }\n\n /** @inheritdoc */\n public async getValue() {\n const value = await this.sourceElement.getAttribute('value');\n return value === null ? undefined : value;\n }\n\n /** @inheritdoc */\n public async setValue(input: string) {\n // Clears the value in the field\n await this.clearValue();\n await this.sourceElement.sendKeys(input);\n await this.sourceElement.sendKeys(ptor.Key.TAB);\n return waitForOtterStable();\n }\n\n /** @inheritdoc */\n public async clearValue() {\n const currentValue = await this.getValue();\n\n if (currentValue !== undefined) {\n // eslint-disable-next-line unicorn/no-new-array -- Required for array initialization purpose\n await this.sourceElement.sendKeys(...(new Array<string>(currentValue.length + 1).fill(ptor.Key.BACK_SPACE)));\n }\n }\n\n /** @inheritdoc */\n public async click() {\n await this.sourceElement.click();\n return waitForOtterStable();\n }\n\n /** @inheritdoc */\n public async isVisible() {\n return await this.sourceElement.isDisplayed();\n }\n\n /** @inheritdoc */\n public async getAttribute(attributeName: string) {\n const attribute = await this.sourceElement.getAttribute(attributeName);\n return attribute === null ? undefined : attribute;\n }\n}\n\n/**\n * Constructor of a O3rElement\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport type O3rElementConstructor<T extends ElementProfile> = new (sourceElement: ElementFinder | O3rElement) => T;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-element.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/checkbox-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAW,YAAW,sBAAsB;gBACtE,aAAa,EAAE,aAAa;IAIxC,kBAAkB;IACL,KAAK,CAAC,KAAK,UAAO,EAAE,eAAe,CAAC,EAAE,UAAU;IAS7D,kBAAkB;IACX,OAAO;IAId,kBAAkB;IACL,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAI3C"}
1
+ {"version":3,"file":"checkbox-element.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/checkbox-element.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAW,YAAW,sBAAsB;gBACtE,aAAa,EAAE,aAAa;IAIxC,kBAAkB;IACL,KAAK,CAAC,KAAK,UAAO,EAAE,eAAe,CAAC,EAAE,UAAU;IAS7D,kBAAkB;IACX,OAAO;IAId,kBAAkB;IACL,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAI3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-element.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/checkbox-element.ts"],"names":[],"mappings":";;;;AAEA,sCAAsC;AAEtC;;;GAGG;AACH;IAAwC,8CAAU;IAChD,4BAAY,aAA4B;QACtC,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,kCAAK,GAAlB;oEAAmB,KAAY,EAAE,eAA4B;;YAA1C,sBAAA,EAAA,YAAY;;;4BACR,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAArC,YAAY,GAAG,SAAsB;wBAC3C,IAAI,YAAY,KAAK,KAAK,EAAE,CAAC;4BAC3B,sBAAO,OAAO,CAAC,OAAO,EAAE,EAAC;wBAC3B,CAAC;wBAED,sBAAO,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAC;;;;KACjE;IAED,kBAAkB;IACX,oCAAO,GAAd;QACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,kBAAkB;IACL,sCAAS,GAAtB;;;;;4BACgB,qBAAM,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,EAAA;;wBAA7C,KAAK,GAAG,SAAqC;wBACnD,sBAAO,KAAK,EAAC;;;;KACd;IACH,yBAAC;AAAD,CAAC,AAzBD,CAAwC,oBAAU,GAyBjD;AAzBY,gDAAkB","sourcesContent":["import {ElementFinder} from 'protractor';\nimport {CheckboxElementProfile} from '../../elements';\nimport {O3rElement} from '../element';\n\n/**\n * Implementation dedicated to karma / TestBed.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rCheckboxElement extends O3rElement implements CheckboxElementProfile {\n constructor(sourceElement: ElementFinder) {\n super(sourceElement);\n }\n\n /** @inheritDoc */\n public async check(value = true, associatedLabel?: O3rElement) {\n const currentValue = await this.isChecked();\n if (currentValue === value) {\n return Promise.resolve();\n }\n\n return associatedLabel ? associatedLabel.click() : this.click();\n }\n\n /** @inheritDoc */\n public uncheck() {\n return this.check(false);\n }\n\n /** @inheritDoc */\n public async isChecked(): Promise<boolean> {\n const value = await this.sourceElement.isSelected();\n return value;\n }\n}\n"]}
1
+ {"version":3,"file":"checkbox-element.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/checkbox-element.ts"],"names":[],"mappings":";;;;AAMA,sCAEoB;AAEpB;;;GAGG;AACH;IAAwC,8CAAU;IAChD,4BAAY,aAA4B;QACtC,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,kCAAK,GAAlB;oEAAmB,KAAY,EAAE,eAA4B;;YAA1C,sBAAA,EAAA,YAAY;;;4BACR,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAArC,YAAY,GAAG,SAAsB;wBAC3C,IAAI,YAAY,KAAK,KAAK,EAAE,CAAC;4BAC3B,sBAAO,OAAO,CAAC,OAAO,EAAE,EAAC;wBAC3B,CAAC;wBAED,sBAAO,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAC;;;;KACjE;IAED,kBAAkB;IACX,oCAAO,GAAd;QACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,kBAAkB;IACL,sCAAS,GAAtB;;;;;4BACgB,qBAAM,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,EAAA;;wBAA7C,KAAK,GAAG,SAAqC;wBACnD,sBAAO,KAAK,EAAC;;;;KACd;IACH,yBAAC;AAAD,CAAC,AAzBD,CAAwC,oBAAU,GAyBjD;AAzBY,gDAAkB","sourcesContent":["import {\n ElementFinder,\n} from 'protractor';\nimport {\n CheckboxElementProfile,\n} from '../../elements';\nimport {\n O3rElement,\n} from '../element';\n\n/**\n * Implementation dedicated to karma / TestBed.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rCheckboxElement extends O3rElement implements CheckboxElementProfile {\n constructor(sourceElement: ElementFinder) {\n super(sourceElement);\n }\n\n /** @inheritDoc */\n public async check(value = true, associatedLabel?: O3rElement) {\n const currentValue = await this.isChecked();\n if (currentValue === value) {\n return Promise.resolve();\n }\n\n return associatedLabel ? associatedLabel.click() : this.click();\n }\n\n /** @inheritDoc */\n public uncheck() {\n return this.check(false);\n }\n\n /** @inheritDoc */\n public async isChecked(): Promise<boolean> {\n const value = await this.sourceElement.isSelected();\n return value;\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  export * from './checkbox-element';
2
- export * from './select-element';
3
2
  export * from './radio-element';
3
+ export * from './select-element';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./checkbox-element"), exports);
5
- tslib_1.__exportStar(require("./select-element"), exports);
6
5
  tslib_1.__exportStar(require("./radio-element"), exports);
6
+ tslib_1.__exportStar(require("./select-element"), exports);
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,2DAAiC;AACjC,0DAAgC","sourcesContent":["export * from './checkbox-element';\nexport * from './select-element';\nexport * from './radio-element';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,0DAAgC;AAChC,2DAAiC","sourcesContent":["export * from './checkbox-element';\nexport * from './radio-element';\nexport * from './select-element';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-element.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/radio-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,UAAW,YAAW,mBAAmB;gBAChE,aAAa,EAAE,aAAa;IAIxC,kBAAkB;IACL,KAAK,CAAC,KAAK,UAAO;IAU/B,kBAAkB;IACX,OAAO;IAId,kBAAkB;IACL,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAI3C"}
1
+ {"version":3,"file":"radio-element.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/radio-element.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,UAAW,YAAW,mBAAmB;gBAChE,aAAa,EAAE,aAAa;IAIxC,kBAAkB;IACL,KAAK,CAAC,KAAK,UAAO;IAW/B,kBAAkB;IACX,OAAO;IAId,kBAAkB;IACL,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAI3C"}
@@ -23,6 +23,7 @@ var O3rRadioElement = /** @class */ (function (_super) {
23
23
  case 1:
24
24
  currentValue = _a.sent();
25
25
  if (currentValue === value) {
26
+ // eslint-disable-next-line no-console -- no other logger available
26
27
  console.warn("O3rRadioElement is already ".concat(value ? 'checked' : 'unchecked'));
27
28
  return [2 /*return*/, Promise.resolve()];
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"radio-element.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/radio-element.ts"],"names":[],"mappings":";;;;AAEA,sCAAsC;AAEtC;;;GAGG;AACH;IAAqC,2CAAU;IAC7C,yBAAY,aAA4B;QACtC,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,+BAAK,GAAlB;oEAAmB,KAAY;;YAAZ,sBAAA,EAAA,YAAY;;;4BACR,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAArC,YAAY,GAAG,SAAsB;wBAC3C,IAAI,YAAY,KAAK,KAAK,EAAE,CAAC;4BAC3B,OAAO,CAAC,IAAI,CAAC,qCAA8B,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAE,CAAC,CAAC;4BAC9E,sBAAO,OAAO,CAAC,OAAO,EAAE,EAAC;wBAC3B,CAAC;wBAED,sBAAO,IAAI,CAAC,KAAK,EAAE,EAAC;;;;KACrB;IAED,kBAAkB;IACX,iCAAO,GAAd;QACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,kBAAkB;IACL,mCAAS,GAAtB;;;;;4BACkB,qBAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAA;;wBAA5C,OAAO,GAAG,SAAkC;wBAClD,sBAAO,OAAO,KAAK,SAAS,EAAC;;;;KAC9B;IACH,sBAAC;AAAD,CAAC,AA1BD,CAAqC,oBAAU,GA0B9C;AA1BY,0CAAe","sourcesContent":["import {ElementFinder} from 'protractor';\nimport {RadioElementProfile} from '../../elements';\nimport {O3rElement} from '../element';\n\n/**\n * Implementation dedicated to karma / TestBed.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rRadioElement extends O3rElement implements RadioElementProfile {\n constructor(sourceElement: ElementFinder) {\n super(sourceElement);\n }\n\n /** @inheritDoc */\n public async check(value = true) {\n const currentValue = await this.isChecked();\n if (currentValue === value) {\n console.warn(`O3rRadioElement is already ${value ? 'checked' : 'unchecked'}`);\n return Promise.resolve();\n }\n\n return this.click();\n }\n\n /** @inheritDoc */\n public uncheck() {\n return this.check(false);\n }\n\n /** @inheritDoc */\n public async isChecked(): Promise<boolean> {\n const checked = await this.getAttribute('checked');\n return checked !== undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"radio-element.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/radio-element.ts"],"names":[],"mappings":";;;;AAMA,sCAEoB;AAEpB;;;GAGG;AACH;IAAqC,2CAAU;IAC7C,yBAAY,aAA4B;QACtC,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,+BAAK,GAAlB;oEAAmB,KAAY;;YAAZ,sBAAA,EAAA,YAAY;;;4BACR,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAArC,YAAY,GAAG,SAAsB;wBAC3C,IAAI,YAAY,KAAK,KAAK,EAAE,CAAC;4BAC3B,mEAAmE;4BACnE,OAAO,CAAC,IAAI,CAAC,qCAA8B,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAE,CAAC,CAAC;4BAC9E,sBAAO,OAAO,CAAC,OAAO,EAAE,EAAC;wBAC3B,CAAC;wBAED,sBAAO,IAAI,CAAC,KAAK,EAAE,EAAC;;;;KACrB;IAED,kBAAkB;IACX,iCAAO,GAAd;QACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,kBAAkB;IACL,mCAAS,GAAtB;;;;;4BACkB,qBAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAA;;wBAA5C,OAAO,GAAG,SAAkC;wBAClD,sBAAO,OAAO,KAAK,SAAS,EAAC;;;;KAC9B;IACH,sBAAC;AAAD,CAAC,AA3BD,CAAqC,oBAAU,GA2B9C;AA3BY,0CAAe","sourcesContent":["import {\n ElementFinder,\n} from 'protractor';\nimport {\n RadioElementProfile,\n} from '../../elements';\nimport {\n O3rElement,\n} from '../element';\n\n/**\n * Implementation dedicated to karma / TestBed.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rRadioElement extends O3rElement implements RadioElementProfile {\n constructor(sourceElement: ElementFinder) {\n super(sourceElement);\n }\n\n /** @inheritDoc */\n public async check(value = true) {\n const currentValue = await this.isChecked();\n if (currentValue === value) {\n // eslint-disable-next-line no-console -- no other logger available\n console.warn(`O3rRadioElement is already ${value ? 'checked' : 'unchecked'}`);\n return Promise.resolve();\n }\n\n return this.click();\n }\n\n /** @inheritDoc */\n public uncheck() {\n return this.check(false);\n }\n\n /** @inheritDoc */\n public async isChecked(): Promise<boolean> {\n const checked = await this.getAttribute('checked');\n return checked !== undefined;\n }\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  import { ElementFinder } from 'protractor';
2
2
  import { SelectElementProfile } from '../../elements';
3
3
  import { O3rElement } from '../element';
4
- export { SelectElementProfile } from '../../elements';
5
4
  /**
6
5
  * Implementation dedicated to Protractor.
7
6
  * @deprecated Will be removed in v13, please use Playwright instead
@@ -1 +1 @@
1
- {"version":3,"file":"select-element.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/select-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,aAAa,EAAC,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,oBAAoB;gBAClE,aAAa,EAAE,aAAa,GAAG,UAAU;IAIrD,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAM3D,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;CAK5D"}
1
+ {"version":3,"file":"select-element.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/elements/select-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,oBAAoB;gBAClE,aAAa,EAAE,aAAa,GAAG,UAAU;IAIrD,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAM3D,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;CAK5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"select-element.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/select-element.ts"],"names":[],"mappings":";;;;AAAA,yCAA6C;AAE7C,sCAAsC;AAItC;;;GAGG;AACH;IAAsC,4CAAU;IAC9C,0BAAY,aAAyC;QACnD,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,wCAAa,GAA1B,UAA2B,KAAa,EAAE,QAAiB;;;;;4BACzD,qBAAM,IAAI,CAAC,KAAK,EAAE,EAAA;;wBAAlB,SAAkB,CAAC;wBACb,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,eAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;wBAC7D,sBAAO,IAAI,oBAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,EAAC;;;;KACnD;IAED,kBAAkB;IACL,wCAAa,GAA1B,UAA2B,KAAa,EAAE,QAAiB;;;;;4BACzD,qBAAM,IAAI,CAAC,KAAK,EAAE,EAAA;;wBAAlB,SAAkB,CAAC;wBACb,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,wBAAiB,KAAK,OAAI,CAAC,CAAC,CAAC;wBAC9E,sBAAO,IAAI,oBAAU,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAC;;;;KACvC;IACH,uBAAC;AAAD,CAAC,AAlBD,CAAsC,oBAAU,GAkB/C;AAlBY,4CAAgB","sourcesContent":["import {By, ElementFinder} from 'protractor';\nimport {SelectElementProfile} from '../../elements';\nimport {O3rElement} from '../element';\n\nexport {SelectElementProfile} from '../../elements';\n\n/**\n * Implementation dedicated to Protractor.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rSelectElement extends O3rElement implements SelectElementProfile {\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 const options = this.sourceElement.all(By.tagName('option'));\n return new O3rElement(options.get(index)).click();\n }\n\n /** @inheritdoc */\n public async selectByValue(value: string, _timeout?: number) {\n await this.click();\n const option = this.sourceElement.element(By.css(`option[value='${value}']`));\n return new O3rElement(option).click();\n }\n}\n"]}
1
+ {"version":3,"file":"select-element.js","sourceRoot":"","sources":["../../../../src/core/protractor/elements/select-element.ts"],"names":[],"mappings":";;;;AAAA,yCAGoB;AAIpB,sCAEoB;AAEpB;;;GAGG;AACH;IAAsC,4CAAU;IAC9C,0BAAY,aAAyC;QACnD,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,wCAAa,GAA1B,UAA2B,KAAa,EAAE,QAAiB;;;;;4BACzD,qBAAM,IAAI,CAAC,KAAK,EAAE,EAAA;;wBAAlB,SAAkB,CAAC;wBACb,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,eAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;wBAC7D,sBAAO,IAAI,oBAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,EAAC;;;;KACnD;IAED,kBAAkB;IACL,wCAAa,GAA1B,UAA2B,KAAa,EAAE,QAAiB;;;;;4BACzD,qBAAM,IAAI,CAAC,KAAK,EAAE,EAAA;;wBAAlB,SAAkB,CAAC;wBACb,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,wBAAiB,KAAK,OAAI,CAAC,CAAC,CAAC;wBAC9E,sBAAO,IAAI,oBAAU,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAC;;;;KACvC;IACH,uBAAC;AAAD,CAAC,AAlBD,CAAsC,oBAAU,GAkB/C;AAlBY,4CAAgB","sourcesContent":["import {\n By,\n ElementFinder,\n} from 'protractor';\nimport {\n SelectElementProfile,\n} from '../../elements';\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 O3rSelectElement extends O3rElement implements SelectElementProfile {\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 const options = this.sourceElement.all(By.tagName('option'));\n return new O3rElement(options.get(index)).click();\n }\n\n /** @inheritdoc */\n public async selectByValue(value: string, _timeout?: number) {\n await this.click();\n const option = this.sourceElement.element(By.css(`option[value='${value}']`));\n return new O3rElement(option).click();\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAEtC;;;GAGG;AAEH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,cAAc,IAAI,KAAK,aAAa,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;AAErH;;;GAGG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,UAAU,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;IAOxD,SAAS,CAAC,aAAa,EAAE,CAAC,EAAE;IALxC,kBAAkB;IAClB,IAAW,KAAK,IAAI,CAAC,EAAE,CAEtB;gBAEqB,aAAa,EAAE,CAAC,EAAE;IAExC,kBAAkB;IACX,YAAY;CAGpB"}
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/group.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,UAAU,EACX,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,cAAc,IAAI,KAAK,aAAa,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;AAErH;;;GAGG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,UAAU,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;IAMxD,SAAS,CAAC,aAAa,EAAE,CAAC,EAAE;IALxC,kBAAkB;IAClB,IAAW,KAAK,IAAI,CAAC,EAAE,CAEtB;gBAEqB,aAAa,EAAE,CAAC,EAAE;IAExC,kBAAkB;IACX,YAAY;CAGpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/core/protractor/group.ts"],"names":[],"mappings":";;;AAYA;;;GAGG;AACH;IAOE,kBAAsB,aAAkB;QAAlB,kBAAa,GAAb,aAAa,CAAK;IAAG,CAAC;IAJ5C,sBAAW,2BAAK;QADhB,kBAAkB;aAClB;YACE,OAAO,IAAI,CAAC,aAAa,CAAC;QAC5B,CAAC;;;OAAA;IAID,kBAAkB;IACX,+BAAY,GAAnB;QACE,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IACH,eAAC;AAAD,CAAC,AAbD,IAaC;AAbY,4BAAQ","sourcesContent":["import { GroupProfile } from '../group';\nimport { ElementProfile, O3rElement } from './element';\n\nexport {GroupProfile} from '../group';\n\n/**\n * Constructor of a O3rGroup\n * @deprecated Will be removed in v13, please use Playwright instead\n */\n// eslint-disable-next-line no-use-before-define\nexport type O3rGroupConstructor<T extends GroupProfile<V>, V extends ElementProfile> = new (sourceElement: V[]) => T;\n\n/**\n * Implementation dedicated to karma / TestBed.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rGroup<T extends O3rElement> implements GroupProfile<T> {\n\n /** @inheritDoc */\n public get items(): T[] {\n return this.sourceElement;\n }\n\n constructor(protected sourceElement: T[]) {}\n\n /** @inheritDoc */\n public isValidGroup() {\n return Promise.resolve(true);\n }\n}\n"]}
1
+ {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/core/protractor/group.ts"],"names":[],"mappings":";;;AAgBA;;;GAGG;AACH;IAME,kBAAsB,aAAkB;QAAlB,kBAAa,GAAb,aAAa,CAAK;IAAG,CAAC;IAJ5C,sBAAW,2BAAK;QADhB,kBAAkB;aAClB;YACE,OAAO,IAAI,CAAC,aAAa,CAAC;QAC5B,CAAC;;;OAAA;IAID,kBAAkB;IACX,+BAAY,GAAnB;QACE,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IACH,eAAC;AAAD,CAAC,AAZD,IAYC;AAZY,4BAAQ","sourcesContent":["import {\n GroupProfile,\n} from '../group';\nimport {\n ElementProfile,\n O3rElement,\n} from './element';\n\nexport { GroupProfile } from '../group';\n\n/**\n * Constructor of a O3rGroup\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport type O3rGroupConstructor<T extends GroupProfile<V>, V extends ElementProfile> = new (sourceElement: V[]) => T;\n\n/**\n * Implementation dedicated to karma / TestBed.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rGroup<T extends O3rElement> implements GroupProfile<T> {\n /** @inheritDoc */\n public get items(): T[] {\n return this.sourceElement;\n }\n\n constructor(protected sourceElement: T[]) {}\n\n /** @inheritDoc */\n public isValidGroup() {\n return Promise.resolve(true);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/groups/radio-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC;;;GAGG;AACH,qBAAa,aAAc,SAAQ,QAAQ,CAAC,eAAe,CAAE,YAAW,iBAAiB;gBAC3E,aAAa,EAAE,eAAe,EAAE;IAI5C,kBAAkB;IACL,YAAY;IAiBzB;;OAEG;IACU,eAAe;CAW7B"}
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/groups/radio-group.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,QAAQ,EACT,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,qBAAa,aAAc,SAAQ,QAAQ,CAAC,eAAe,CAAE,YAAW,iBAAiB;gBAC3E,aAAa,EAAE,eAAe,EAAE;IAI5C,kBAAkB;IACL,YAAY;IAkBzB;;OAEG;IACU,eAAe;CAU7B"}
@@ -29,6 +29,7 @@ var O3rRadioGroup = /** @class */ (function (_super) {
29
29
  case 2:
30
30
  itemName = _b.sent();
31
31
  if (name !== '' && name !== itemName) {
32
+ // eslint-disable-next-line no-console -- no other logger available
32
33
  console.warn("Items in this radio group are not consistent, incompatible input names found ".concat(name, " and ").concat(itemName || 'undefined'));
33
34
  return [2 /*return*/, false];
34
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../../src/core/protractor/groups/radio-group.ts"],"names":[],"mappings":";;;;AAEA,kCAAoC;AAEpC;;;GAGG;AACH;IAAmC,yCAAyB;IAC1D,uBAAY,aAAgC;QAC1C,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,oCAAY,GAAzB;;;;;;wBACM,IAAI,GAAG,EAAE,CAAC;8BAEe,EAAV,KAAA,IAAI,CAAC,KAAK;;;6BAAV,CAAA,cAAU,CAAA;wBAAlB,IAAI;wBACI,qBAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAA;;wBAA1C,QAAQ,GAAG,SAA+B;wBAChD,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;4BACrC,OAAO,CAAC,IAAI,CAAC,uFAAgF,IAAI,kBAAQ,QAAQ,IAAI,WAAW,CAAE,CAAC,CAAC;4BACpI,sBAAO,KAAK,EAAC;wBACf,CAAC;wBACD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;4BAC3B,IAAI,GAAG,QAAQ,CAAC;wBAClB,CAAC;;;wBARgB,IAAU,CAAA;;4BAW7B,sBAAO,IAAI,EAAC;;;;KACb;IAED;;OAEG;IACU,uCAAe,GAA5B;;;;;;8BAE+B,EAAV,KAAA,IAAI,CAAC,KAAK;;;6BAAV,CAAA,cAAU,CAAA;wBAAlB,IAAI;wBACM,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAAnC,UAAU,GAAG,SAAsB;wBACzC,IAAI,UAAU,EAAE,CAAC;4BACf,sBAAO,IAAI,EAAC;wBACd,CAAC;;;wBAJgB,IAAU,CAAA;;4BAO7B,sBAAO,SAAS,EAAC;;;;KAClB;IACH,oBAAC;AAAD,CAAC,AArCD,CAAmC,gBAAQ,GAqC1C;AArCY,sCAAa","sourcesContent":["import { RadioGroupProfile } from '../../groups/radio-group';\nimport { O3rRadioElement } from '../elements/radio-element';\nimport { O3rGroup } from '../group';\n\n/**\n * Group element to manage a radio group\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rRadioGroup extends O3rGroup<O3rRadioElement> implements RadioGroupProfile {\n constructor(sourceElement: O3rRadioElement[]) {\n super(sourceElement);\n }\n\n /** @inheritDoc */\n public async isValidGroup() {\n let name = '';\n\n for (const item of this.items) {\n const itemName = await item.getAttribute('name');\n if (name !== '' && name !== itemName) {\n console.warn(`Items in this radio group are not consistent, incompatible input names found ${name} and ${itemName || 'undefined'}`);\n return false;\n }\n if (itemName !== undefined) {\n name = itemName;\n }\n }\n\n return true;\n }\n\n /**\n * Get the selected radio\n */\n public async getSelectedItem() {\n\n for (const item of this.items) {\n const isSelected = await item.isChecked();\n if (isSelected) {\n return item;\n }\n }\n\n return undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../../src/core/protractor/groups/radio-group.ts"],"names":[],"mappings":";;;;AAMA,kCAEkB;AAElB;;;GAGG;AACH;IAAmC,yCAAyB;IAC1D,uBAAY,aAAgC;QAC1C,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAED,kBAAkB;IACL,oCAAY,GAAzB;;;;;;wBACM,IAAI,GAAG,EAAE,CAAC;8BAEe,EAAV,KAAA,IAAI,CAAC,KAAK;;;6BAAV,CAAA,cAAU,CAAA;wBAAlB,IAAI;wBACI,qBAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAA;;wBAA1C,QAAQ,GAAG,SAA+B;wBAChD,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;4BACrC,mEAAmE;4BACnE,OAAO,CAAC,IAAI,CAAC,uFAAgF,IAAI,kBAAQ,QAAQ,IAAI,WAAW,CAAE,CAAC,CAAC;4BACpI,sBAAO,KAAK,EAAC;wBACf,CAAC;wBACD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;4BAC3B,IAAI,GAAG,QAAQ,CAAC;wBAClB,CAAC;;;wBATgB,IAAU,CAAA;;4BAY7B,sBAAO,IAAI,EAAC;;;;KACb;IAED;;OAEG;IACU,uCAAe,GAA5B;;;;;;8BAC+B,EAAV,KAAA,IAAI,CAAC,KAAK;;;6BAAV,CAAA,cAAU,CAAA;wBAAlB,IAAI;wBACM,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAAnC,UAAU,GAAG,SAAsB;wBACzC,IAAI,UAAU,EAAE,CAAC;4BACf,sBAAO,IAAI,EAAC;wBACd,CAAC;;;wBAJgB,IAAU,CAAA;;4BAO7B,sBAAO,SAAS,EAAC;;;;KAClB;IACH,oBAAC;AAAD,CAAC,AArCD,CAAmC,gBAAQ,GAqC1C;AArCY,sCAAa","sourcesContent":["import {\n RadioGroupProfile,\n} from '../../groups/radio-group';\nimport {\n O3rRadioElement,\n} from '../elements/radio-element';\nimport {\n O3rGroup,\n} from '../group';\n\n/**\n * Group element to manage a radio group\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rRadioGroup extends O3rGroup<O3rRadioElement> implements RadioGroupProfile {\n constructor(sourceElement: O3rRadioElement[]) {\n super(sourceElement);\n }\n\n /** @inheritDoc */\n public async isValidGroup() {\n let name = '';\n\n for (const item of this.items) {\n const itemName = await item.getAttribute('name');\n if (name !== '' && name !== itemName) {\n // eslint-disable-next-line no-console -- no other logger available\n console.warn(`Items in this radio group are not consistent, incompatible input names found ${name} and ${itemName || 'undefined'}`);\n return false;\n }\n if (itemName !== undefined) {\n name = itemName;\n }\n }\n\n return true;\n }\n\n /**\n * Get the selected radio\n */\n public async getSelectedItem() {\n for (const item of this.items) {\n const isSelected = await item.isChecked();\n if (isSelected) {\n return item;\n }\n }\n\n return undefined;\n }\n}\n"]}
@@ -1,8 +1,9 @@
1
1
  export * from './angular-materials';
2
2
  export * from './component-fixture';
3
+ export * from './element';
4
+ export * from './elements';
3
5
  export * from './group';
4
6
  export * from './groups';
5
- export * from './elements';
6
- export * from './element';
7
7
  export * from './page-fixture';
8
+ export { SelectElementProfile } from '../elements';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./angular-materials"), exports);
5
5
  tslib_1.__exportStar(require("./component-fixture"), exports);
6
+ tslib_1.__exportStar(require("./element"), exports);
7
+ tslib_1.__exportStar(require("./elements"), exports);
6
8
  tslib_1.__exportStar(require("./group"), exports);
7
9
  tslib_1.__exportStar(require("./groups"), exports);
8
- tslib_1.__exportStar(require("./elements"), exports);
9
- tslib_1.__exportStar(require("./element"), exports);
10
10
  tslib_1.__exportStar(require("./page-fixture"), exports);
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/protractor/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,8DAAoC;AACpC,kDAAwB;AACxB,mDAAyB;AACzB,qDAA2B;AAC3B,oDAA0B;AAC1B,yDAA+B","sourcesContent":["export * from './angular-materials';\nexport * from './component-fixture';\nexport * from './group';\nexport * from './groups';\nexport * from './elements';\nexport * from './element';\nexport * from './page-fixture';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/protractor/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,8DAAoC;AACpC,oDAA0B;AAC1B,qDAA2B;AAC3B,kDAAwB;AACxB,mDAAyB;AACzB,yDAA+B","sourcesContent":["export * from './angular-materials';\nexport * from './component-fixture';\nexport * from './element';\nexport * from './elements';\nexport * from './group';\nexport * from './groups';\nexport * from './page-fixture';\nexport { SelectElementProfile } from '../elements';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"page-fixture.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/page-fixture.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAGrC,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;gBAChH,WAAW,CAAC,EAAE,CAAC;IAIpB,QAAQ;CAGhB"}
1
+ {"version":3,"file":"page-fixture.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/page-fixture.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACX,MAAM,WAAW,CAAC;AAKnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;GAGG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;gBAChH,WAAW,CAAC,EAAE,CAAC;IAIpB,QAAQ;CAGhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"page-fixture.js","sourceRoot":"","sources":["../../../src/core/protractor/page-fixture.ts"],"names":[],"mappings":";;;;AAAA,yCAAmC;AAEnC,yDAAwD;AAExD,iCAAuC;AAIvC;;;GAGG;AACH;IAAuE,0CAAsB;IAC3F,wBAAY,WAAe;QACzB,OAAA,MAAK,YAAC,WAAW,CAAC,SAAC;IACrB,CAAC;IAEM,iCAAQ,GAAf;QACE,OAAO,IAAA,sBAAc,EAAC,oBAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC5C,CAAC;IACH,qBAAC;AAAD,CAAC,AARD,CAAuE,uCAAmB,GAQzF;AARY,wCAAc","sourcesContent":["import {browser} from 'protractor';\nimport {PageFixtureProfile} from '../page-fixture';\nimport {O3rComponentFixture} from './component-fixture';\nimport {O3rElement} from './element';\nimport {convertPromise} from './utils';\n\nexport {PageFixtureProfile} from '../page-fixture';\n\n/**\n * Implementation of the page fixture dedicated to protractor.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rPageFixture<V extends O3rElement = O3rElement> extends O3rComponentFixture<V> implements PageFixtureProfile<V> {\n constructor(rootElement?: V) {\n super(rootElement);\n }\n\n public getTitle() {\n return convertPromise(browser.getTitle());\n }\n}\n"]}
1
+ {"version":3,"file":"page-fixture.js","sourceRoot":"","sources":["../../../src/core/protractor/page-fixture.ts"],"names":[],"mappings":";;;;AAAA,yCAEoB;AAIpB,yDAE6B;AAI7B,iCAEiB;AAIjB;;;GAGG;AACH;IAAuE,0CAAsB;IAC3F,wBAAY,WAAe;QACzB,OAAA,MAAK,YAAC,WAAW,CAAC,SAAC;IACrB,CAAC;IAEM,iCAAQ,GAAf;QACE,OAAO,IAAA,sBAAc,EAAC,oBAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC5C,CAAC;IACH,qBAAC;AAAD,CAAC,AARD,CAAuE,uCAAmB,GAQzF;AARY,wCAAc","sourcesContent":["import {\n browser,\n} from 'protractor';\nimport {\n PageFixtureProfile,\n} from '../page-fixture';\nimport {\n O3rComponentFixture,\n} from './component-fixture';\nimport {\n O3rElement,\n} from './element';\nimport {\n convertPromise,\n} from './utils';\n\nexport { PageFixtureProfile } from '../page-fixture';\n\n/**\n * Implementation of the page fixture dedicated to protractor.\n * @deprecated Will be removed in v13, please use Playwright instead\n */\nexport class O3rPageFixture<V extends O3rElement = O3rElement> extends O3rComponentFixture<V> implements PageFixtureProfile<V> {\n constructor(rootElement?: V) {\n super(rootElement);\n }\n\n public getTitle() {\n return convertPromise(browser.getTitle());\n }\n}\n"]}