@o3r/testing 13.0.0-next.1 → 13.0.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/package.json +53 -64
  2. package/schematics/ng-add/index.d.ts.map +1 -1
  3. package/schematics/ng-add/index.js +4 -1
  4. package/schematics/ng-add/index.js.map +1 -1
  5. package/tools/index.d.ts +0 -1
  6. package/tools/index.d.ts.map +1 -1
  7. package/tools/index.js +0 -1
  8. package/tools/index.js.map +1 -1
  9. package/tools/path-replacement/path-replacement.d.ts +2 -2
  10. package/tools/path-replacement/path-replacement.d.ts.map +1 -1
  11. package/tools/path-replacement/path-replacement.js +2 -1
  12. package/tools/path-replacement/path-replacement.js.map +1 -1
  13. package/core/protractor/angular-materials/autocomplete-material.d.ts +0 -13
  14. package/core/protractor/angular-materials/autocomplete-material.d.ts.map +0 -1
  15. package/core/protractor/angular-materials/autocomplete-material.js +0 -37
  16. package/core/protractor/angular-materials/autocomplete-material.js.map +0 -1
  17. package/core/protractor/angular-materials/index.d.ts +0 -3
  18. package/core/protractor/angular-materials/index.d.ts.map +0 -1
  19. package/core/protractor/angular-materials/index.js +0 -6
  20. package/core/protractor/angular-materials/index.js.map +0 -1
  21. package/core/protractor/angular-materials/select-material.d.ts +0 -19
  22. package/core/protractor/angular-materials/select-material.d.ts.map +0 -1
  23. package/core/protractor/angular-materials/select-material.js +0 -113
  24. package/core/protractor/angular-materials/select-material.js.map +0 -1
  25. package/core/protractor/component-fixture.d.ts +0 -126
  26. package/core/protractor/component-fixture.d.ts.map +0 -1
  27. package/core/protractor/component-fixture.js +0 -274
  28. package/core/protractor/component-fixture.js.map +0 -1
  29. package/core/protractor/element.d.ts +0 -38
  30. package/core/protractor/element.d.ts.map +0 -1
  31. package/core/protractor/element.js +0 -145
  32. package/core/protractor/element.js.map +0 -1
  33. package/core/protractor/elements/checkbox-element.d.ts +0 -17
  34. package/core/protractor/elements/checkbox-element.d.ts.map +0 -1
  35. package/core/protractor/elements/checkbox-element.js +0 -54
  36. package/core/protractor/elements/checkbox-element.js.map +0 -1
  37. package/core/protractor/elements/index.d.ts +0 -4
  38. package/core/protractor/elements/index.d.ts.map +0 -1
  39. package/core/protractor/elements/index.js +0 -7
  40. package/core/protractor/elements/index.js.map +0 -1
  41. package/core/protractor/elements/radio-element.d.ts +0 -17
  42. package/core/protractor/elements/radio-element.d.ts.map +0 -1
  43. package/core/protractor/elements/radio-element.js +0 -56
  44. package/core/protractor/elements/radio-element.js.map +0 -1
  45. package/core/protractor/elements/select-element.d.ts +0 -15
  46. package/core/protractor/elements/select-element.d.ts.map +0 -1
  47. package/core/protractor/elements/select-element.js +0 -49
  48. package/core/protractor/elements/select-element.js.map +0 -1
  49. package/core/protractor/group.d.ts +0 -21
  50. package/core/protractor/group.d.ts.map +0 -1
  51. package/core/protractor/group.js +0 -27
  52. package/core/protractor/group.js.map +0 -1
  53. package/core/protractor/groups/index.d.ts +0 -2
  54. package/core/protractor/groups/index.d.ts.map +0 -1
  55. package/core/protractor/groups/index.js +0 -5
  56. package/core/protractor/groups/index.js.map +0 -1
  57. package/core/protractor/groups/radio-group.d.ts +0 -17
  58. package/core/protractor/groups/radio-group.d.ts.map +0 -1
  59. package/core/protractor/groups/radio-group.js +0 -80
  60. package/core/protractor/groups/radio-group.js.map +0 -1
  61. package/core/protractor/index.d.ts +0 -9
  62. package/core/protractor/index.d.ts.map +0 -1
  63. package/core/protractor/index.js +0 -11
  64. package/core/protractor/index.js.map +0 -1
  65. package/core/protractor/page-fixture.d.ts +0 -13
  66. package/core/protractor/page-fixture.d.ts.map +0 -1
  67. package/core/protractor/page-fixture.js +0 -23
  68. package/core/protractor/page-fixture.js.map +0 -1
  69. package/core/protractor/utils.d.ts +0 -8
  70. package/core/protractor/utils.d.ts.map +0 -1
  71. package/core/protractor/utils.js +0 -12
  72. package/core/protractor/utils.js.map +0 -1
  73. package/tools/protractor/fetch-manager/_fetch-manager.d.ts +0 -1
  74. package/tools/protractor/fetch-manager/_fetch-manager.d.ts.map +0 -1
  75. package/tools/protractor/fetch-manager/_fetch-manager.js +0 -127
  76. package/tools/protractor/fetch-manager/_fetch-manager.js.map +0 -1
  77. package/tools/protractor/fetch-manager/index.d.ts +0 -2
  78. package/tools/protractor/fetch-manager/index.d.ts.map +0 -1
  79. package/tools/protractor/fetch-manager/index.js +0 -5
  80. package/tools/protractor/fetch-manager/index.js.map +0 -1
  81. package/tools/protractor/fetch-manager/utils.d.ts +0 -25
  82. package/tools/protractor/fetch-manager/utils.d.ts.map +0 -1
  83. package/tools/protractor/fetch-manager/utils.js +0 -81
  84. package/tools/protractor/fetch-manager/utils.js.map +0 -1
  85. package/tools/protractor/index.d.ts +0 -3
  86. package/tools/protractor/index.d.ts.map +0 -1
  87. package/tools/protractor/index.js +0 -6
  88. package/tools/protractor/index.js.map +0 -1
  89. package/tools/protractor/post-message-interceptor/_post-message-interceptor.d.ts +0 -5
  90. package/tools/protractor/post-message-interceptor/_post-message-interceptor.d.ts.map +0 -1
  91. package/tools/protractor/post-message-interceptor/_post-message-interceptor.js +0 -157
  92. package/tools/protractor/post-message-interceptor/_post-message-interceptor.js.map +0 -1
  93. package/tools/protractor/post-message-interceptor/core.d.ts +0 -17
  94. package/tools/protractor/post-message-interceptor/core.d.ts.map +0 -1
  95. package/tools/protractor/post-message-interceptor/core.js +0 -3
  96. package/tools/protractor/post-message-interceptor/core.js.map +0 -1
  97. package/tools/protractor/post-message-interceptor/index.d.ts +0 -3
  98. package/tools/protractor/post-message-interceptor/index.d.ts.map +0 -1
  99. package/tools/protractor/post-message-interceptor/index.js +0 -6
  100. package/tools/protractor/post-message-interceptor/index.js.map +0 -1
  101. package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts +0 -45
  102. package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts.map +0 -1
  103. package/tools/protractor/post-message-interceptor/post-message-interceptor.js +0 -144
  104. package/tools/protractor/post-message-interceptor/post-message-interceptor.js.map +0 -1
@@ -1,17 +0,0 @@
1
- import { ElementFinder } from 'protractor';
2
- import { CheckboxElementProfile } from '../../elements';
3
- import { O3rElement } from '../element';
4
- /**
5
- * Implementation dedicated to karma / TestBed.
6
- * @deprecated Will be removed in v13, please use Playwright instead
7
- */
8
- export declare class O3rCheckboxElement extends O3rElement implements CheckboxElementProfile {
9
- constructor(sourceElement: ElementFinder);
10
- /** @inheritDoc */
11
- check(value?: boolean, associatedLabel?: O3rElement): Promise<void>;
12
- /** @inheritDoc */
13
- uncheck(): Promise<void>;
14
- /** @inheritDoc */
15
- isChecked(): Promise<boolean>;
16
- }
17
- //# sourceMappingURL=checkbox-element.d.ts.map
@@ -1 +0,0 @@
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,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.O3rCheckboxElement = void 0;
4
- var tslib_1 = require("tslib");
5
- var element_1 = require("../element");
6
- /**
7
- * Implementation dedicated to karma / TestBed.
8
- * @deprecated Will be removed in v13, please use Playwright instead
9
- */
10
- var O3rCheckboxElement = /** @class */ (function (_super) {
11
- tslib_1.__extends(O3rCheckboxElement, _super);
12
- function O3rCheckboxElement(sourceElement) {
13
- return _super.call(this, sourceElement) || this;
14
- }
15
- /** @inheritDoc */
16
- O3rCheckboxElement.prototype.check = function () {
17
- return tslib_1.__awaiter(this, arguments, void 0, function (value, associatedLabel) {
18
- var currentValue;
19
- if (value === void 0) { value = true; }
20
- return tslib_1.__generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4 /*yield*/, this.isChecked()];
23
- case 1:
24
- currentValue = _a.sent();
25
- if (currentValue === value) {
26
- return [2 /*return*/, Promise.resolve()];
27
- }
28
- return [2 /*return*/, associatedLabel ? associatedLabel.click() : this.click()];
29
- }
30
- });
31
- });
32
- };
33
- /** @inheritDoc */
34
- O3rCheckboxElement.prototype.uncheck = function () {
35
- return this.check(false);
36
- };
37
- /** @inheritDoc */
38
- O3rCheckboxElement.prototype.isChecked = function () {
39
- return tslib_1.__awaiter(this, void 0, void 0, function () {
40
- var value;
41
- return tslib_1.__generator(this, function (_a) {
42
- switch (_a.label) {
43
- case 0: return [4 /*yield*/, this.sourceElement.isSelected()];
44
- case 1:
45
- value = _a.sent();
46
- return [2 /*return*/, value];
47
- }
48
- });
49
- });
50
- };
51
- return O3rCheckboxElement;
52
- }(element_1.O3rElement));
53
- exports.O3rCheckboxElement = O3rCheckboxElement;
54
- //# sourceMappingURL=checkbox-element.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- export * from './checkbox-element';
2
- export * from './radio-element';
3
- export * from './select-element';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./checkbox-element"), exports);
5
- tslib_1.__exportStar(require("./radio-element"), exports);
6
- tslib_1.__exportStar(require("./select-element"), exports);
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,17 +0,0 @@
1
- import { ElementFinder } from 'protractor';
2
- import { RadioElementProfile } from '../../elements';
3
- import { O3rElement } from '../element';
4
- /**
5
- * Implementation dedicated to karma / TestBed.
6
- * @deprecated Will be removed in v13, please use Playwright instead
7
- */
8
- export declare class O3rRadioElement extends O3rElement implements RadioElementProfile {
9
- constructor(sourceElement: ElementFinder);
10
- /** @inheritDoc */
11
- check(value?: boolean): Promise<void>;
12
- /** @inheritDoc */
13
- uncheck(): Promise<void>;
14
- /** @inheritDoc */
15
- isChecked(): Promise<boolean>;
16
- }
17
- //# sourceMappingURL=radio-element.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.O3rRadioElement = void 0;
4
- var tslib_1 = require("tslib");
5
- var element_1 = require("../element");
6
- /**
7
- * Implementation dedicated to karma / TestBed.
8
- * @deprecated Will be removed in v13, please use Playwright instead
9
- */
10
- var O3rRadioElement = /** @class */ (function (_super) {
11
- tslib_1.__extends(O3rRadioElement, _super);
12
- function O3rRadioElement(sourceElement) {
13
- return _super.call(this, sourceElement) || this;
14
- }
15
- /** @inheritDoc */
16
- O3rRadioElement.prototype.check = function () {
17
- return tslib_1.__awaiter(this, arguments, void 0, function (value) {
18
- var currentValue;
19
- if (value === void 0) { value = true; }
20
- return tslib_1.__generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4 /*yield*/, this.isChecked()];
23
- case 1:
24
- currentValue = _a.sent();
25
- if (currentValue === value) {
26
- // eslint-disable-next-line no-console -- no other logger available
27
- console.warn("O3rRadioElement is already ".concat(value ? 'checked' : 'unchecked'));
28
- return [2 /*return*/, Promise.resolve()];
29
- }
30
- return [2 /*return*/, this.click()];
31
- }
32
- });
33
- });
34
- };
35
- /** @inheritDoc */
36
- O3rRadioElement.prototype.uncheck = function () {
37
- return this.check(false);
38
- };
39
- /** @inheritDoc */
40
- O3rRadioElement.prototype.isChecked = function () {
41
- return tslib_1.__awaiter(this, void 0, void 0, function () {
42
- var checked;
43
- return tslib_1.__generator(this, function (_a) {
44
- switch (_a.label) {
45
- case 0: return [4 /*yield*/, this.getAttribute('checked')];
46
- case 1:
47
- checked = _a.sent();
48
- return [2 /*return*/, checked !== undefined];
49
- }
50
- });
51
- });
52
- };
53
- return O3rRadioElement;
54
- }(element_1.O3rElement));
55
- exports.O3rRadioElement = O3rRadioElement;
56
- //# sourceMappingURL=radio-element.js.map
@@ -1 +0,0 @@
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,15 +0,0 @@
1
- import { ElementFinder } from 'protractor';
2
- import { SelectElementProfile } from '../../elements';
3
- import { O3rElement } from '../element';
4
- /**
5
- * Implementation dedicated to Protractor.
6
- * @deprecated Will be removed in v13, please use Playwright instead
7
- */
8
- export declare class O3rSelectElement extends O3rElement implements SelectElementProfile {
9
- constructor(sourceElement: ElementFinder | O3rElement);
10
- /** @inheritdoc */
11
- selectByIndex(index: number, _timeout?: number): Promise<void>;
12
- /** @inheritdoc */
13
- selectByValue(value: string, _timeout?: number): Promise<void>;
14
- }
15
- //# sourceMappingURL=select-element.d.ts.map
@@ -1 +0,0 @@
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,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.O3rSelectElement = void 0;
4
- var tslib_1 = require("tslib");
5
- var protractor_1 = require("protractor");
6
- var element_1 = require("../element");
7
- /**
8
- * Implementation dedicated to Protractor.
9
- * @deprecated Will be removed in v13, please use Playwright instead
10
- */
11
- var O3rSelectElement = /** @class */ (function (_super) {
12
- tslib_1.__extends(O3rSelectElement, _super);
13
- function O3rSelectElement(sourceElement) {
14
- return _super.call(this, sourceElement) || this;
15
- }
16
- /** @inheritdoc */
17
- O3rSelectElement.prototype.selectByIndex = function (index, _timeout) {
18
- return tslib_1.__awaiter(this, void 0, void 0, function () {
19
- var options;
20
- return tslib_1.__generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4 /*yield*/, this.click()];
23
- case 1:
24
- _a.sent();
25
- options = this.sourceElement.all(protractor_1.By.tagName('option'));
26
- return [2 /*return*/, new element_1.O3rElement(options.get(index)).click()];
27
- }
28
- });
29
- });
30
- };
31
- /** @inheritdoc */
32
- O3rSelectElement.prototype.selectByValue = function (value, _timeout) {
33
- return tslib_1.__awaiter(this, void 0, void 0, function () {
34
- var option;
35
- return tslib_1.__generator(this, function (_a) {
36
- switch (_a.label) {
37
- case 0: return [4 /*yield*/, this.click()];
38
- case 1:
39
- _a.sent();
40
- option = this.sourceElement.element(protractor_1.By.css("option[value='".concat(value, "']")));
41
- return [2 /*return*/, new element_1.O3rElement(option).click()];
42
- }
43
- });
44
- });
45
- };
46
- return O3rSelectElement;
47
- }(element_1.O3rElement));
48
- exports.O3rSelectElement = O3rSelectElement;
49
- //# sourceMappingURL=select-element.js.map
@@ -1 +0,0 @@
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,21 +0,0 @@
1
- import { GroupProfile } from '../group';
2
- import { ElementProfile, O3rElement } from './element';
3
- export { GroupProfile } from '../group';
4
- /**
5
- * Constructor of a O3rGroup
6
- * @deprecated Will be removed in v13, please use Playwright instead
7
- */
8
- export type O3rGroupConstructor<T extends GroupProfile<V>, V extends ElementProfile> = new (sourceElement: V[]) => T;
9
- /**
10
- * Implementation dedicated to karma / TestBed.
11
- * @deprecated Will be removed in v13, please use Playwright instead
12
- */
13
- export declare class O3rGroup<T extends O3rElement> implements GroupProfile<T> {
14
- protected sourceElement: T[];
15
- /** @inheritDoc */
16
- get items(): T[];
17
- constructor(sourceElement: T[]);
18
- /** @inheritDoc */
19
- isValidGroup(): Promise<boolean>;
20
- }
21
- //# sourceMappingURL=group.d.ts.map
@@ -1 +0,0 @@
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,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.O3rGroup = void 0;
4
- /**
5
- * Implementation dedicated to karma / TestBed.
6
- * @deprecated Will be removed in v13, please use Playwright instead
7
- */
8
- var O3rGroup = /** @class */ (function () {
9
- function O3rGroup(sourceElement) {
10
- this.sourceElement = sourceElement;
11
- }
12
- Object.defineProperty(O3rGroup.prototype, "items", {
13
- /** @inheritDoc */
14
- get: function () {
15
- return this.sourceElement;
16
- },
17
- enumerable: false,
18
- configurable: true
19
- });
20
- /** @inheritDoc */
21
- O3rGroup.prototype.isValidGroup = function () {
22
- return Promise.resolve(true);
23
- };
24
- return O3rGroup;
25
- }());
26
- exports.O3rGroup = O3rGroup;
27
- //# sourceMappingURL=group.js.map
@@ -1 +0,0 @@
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,2 +0,0 @@
1
- export * from './radio-group';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/protractor/groups/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./radio-group"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/protractor/groups/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B","sourcesContent":["export * from './radio-group';\n"]}
@@ -1,17 +0,0 @@
1
- import { RadioGroupProfile } from '../../groups/radio-group';
2
- import { O3rRadioElement } from '../elements/radio-element';
3
- import { O3rGroup } from '../group';
4
- /**
5
- * Group element to manage a radio group
6
- * @deprecated Will be removed in v13, please use Playwright instead
7
- */
8
- export declare class O3rRadioGroup extends O3rGroup<O3rRadioElement> implements RadioGroupProfile {
9
- constructor(sourceElement: O3rRadioElement[]);
10
- /** @inheritDoc */
11
- isValidGroup(): Promise<boolean>;
12
- /**
13
- * Get the selected radio
14
- */
15
- getSelectedItem(): Promise<O3rRadioElement | undefined>;
16
- }
17
- //# sourceMappingURL=radio-group.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.O3rRadioGroup = void 0;
4
- var tslib_1 = require("tslib");
5
- var group_1 = require("../group");
6
- /**
7
- * Group element to manage a radio group
8
- * @deprecated Will be removed in v13, please use Playwright instead
9
- */
10
- var O3rRadioGroup = /** @class */ (function (_super) {
11
- tslib_1.__extends(O3rRadioGroup, _super);
12
- function O3rRadioGroup(sourceElement) {
13
- return _super.call(this, sourceElement) || this;
14
- }
15
- /** @inheritDoc */
16
- O3rRadioGroup.prototype.isValidGroup = function () {
17
- return tslib_1.__awaiter(this, void 0, void 0, function () {
18
- var name, _i, _a, item, itemName;
19
- return tslib_1.__generator(this, function (_b) {
20
- switch (_b.label) {
21
- case 0:
22
- name = '';
23
- _i = 0, _a = this.items;
24
- _b.label = 1;
25
- case 1:
26
- if (!(_i < _a.length)) return [3 /*break*/, 4];
27
- item = _a[_i];
28
- return [4 /*yield*/, item.getAttribute('name')];
29
- case 2:
30
- itemName = _b.sent();
31
- if (name !== '' && name !== itemName) {
32
- // eslint-disable-next-line no-console -- no other logger available
33
- console.warn("Items in this radio group are not consistent, incompatible input names found ".concat(name, " and ").concat(itemName || 'undefined'));
34
- return [2 /*return*/, false];
35
- }
36
- if (itemName !== undefined) {
37
- name = itemName;
38
- }
39
- _b.label = 3;
40
- case 3:
41
- _i++;
42
- return [3 /*break*/, 1];
43
- case 4: return [2 /*return*/, true];
44
- }
45
- });
46
- });
47
- };
48
- /**
49
- * Get the selected radio
50
- */
51
- O3rRadioGroup.prototype.getSelectedItem = function () {
52
- return tslib_1.__awaiter(this, void 0, void 0, function () {
53
- var _i, _a, item, isSelected;
54
- return tslib_1.__generator(this, function (_b) {
55
- switch (_b.label) {
56
- case 0:
57
- _i = 0, _a = this.items;
58
- _b.label = 1;
59
- case 1:
60
- if (!(_i < _a.length)) return [3 /*break*/, 4];
61
- item = _a[_i];
62
- return [4 /*yield*/, item.isChecked()];
63
- case 2:
64
- isSelected = _b.sent();
65
- if (isSelected) {
66
- return [2 /*return*/, item];
67
- }
68
- _b.label = 3;
69
- case 3:
70
- _i++;
71
- return [3 /*break*/, 1];
72
- case 4: return [2 /*return*/, undefined];
73
- }
74
- });
75
- });
76
- };
77
- return O3rRadioGroup;
78
- }(group_1.O3rGroup));
79
- exports.O3rRadioGroup = O3rRadioGroup;
80
- //# sourceMappingURL=radio-group.js.map
@@ -1 +0,0 @@
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,9 +0,0 @@
1
- export * from './angular-materials';
2
- export * from './component-fixture';
3
- export * from './element';
4
- export * from './elements';
5
- export * from './group';
6
- export * from './groups';
7
- export * from './page-fixture';
8
- export { SelectElementProfile } from '../elements';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./angular-materials"), exports);
5
- tslib_1.__exportStar(require("./component-fixture"), exports);
6
- tslib_1.__exportStar(require("./element"), exports);
7
- tslib_1.__exportStar(require("./elements"), exports);
8
- tslib_1.__exportStar(require("./group"), exports);
9
- tslib_1.__exportStar(require("./groups"), exports);
10
- tslib_1.__exportStar(require("./page-fixture"), exports);
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,13 +0,0 @@
1
- import { PageFixtureProfile } from '../page-fixture';
2
- import { O3rComponentFixture } from './component-fixture';
3
- import { O3rElement } from './element';
4
- export { PageFixtureProfile } from '../page-fixture';
5
- /**
6
- * Implementation of the page fixture dedicated to protractor.
7
- * @deprecated Will be removed in v13, please use Playwright instead
8
- */
9
- export declare class O3rPageFixture<V extends O3rElement = O3rElement> extends O3rComponentFixture<V> implements PageFixtureProfile<V> {
10
- constructor(rootElement?: V);
11
- getTitle(): Promise<string>;
12
- }
13
- //# sourceMappingURL=page-fixture.d.ts.map
@@ -1 +0,0 @@
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,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.O3rPageFixture = void 0;
4
- var tslib_1 = require("tslib");
5
- var protractor_1 = require("protractor");
6
- var component_fixture_1 = require("./component-fixture");
7
- var utils_1 = require("./utils");
8
- /**
9
- * Implementation of the page fixture dedicated to protractor.
10
- * @deprecated Will be removed in v13, please use Playwright instead
11
- */
12
- var O3rPageFixture = /** @class */ (function (_super) {
13
- tslib_1.__extends(O3rPageFixture, _super);
14
- function O3rPageFixture(rootElement) {
15
- return _super.call(this, rootElement) || this;
16
- }
17
- O3rPageFixture.prototype.getTitle = function () {
18
- return (0, utils_1.convertPromise)(protractor_1.browser.getTitle());
19
- };
20
- return O3rPageFixture;
21
- }(component_fixture_1.O3rComponentFixture));
22
- exports.O3rPageFixture = O3rPageFixture;
23
- //# sourceMappingURL=page-fixture.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,8 +0,0 @@
1
- import { promise as pPromise } from 'protractor';
2
- /**
3
- * Converts a webdriver promise to ES6 promise so the rest of the framework handles ES6 promises only
4
- * @deprecated Will be removed in v13, please use Playwright instead
5
- * @param promise
6
- */
7
- export declare function convertPromise<T>(promise: pPromise.Promise<T>): Promise<T>;
8
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/protractor/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,QAAQ,EACpB,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,cAE7D"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertPromise = convertPromise;
4
- /**
5
- * Converts a webdriver promise to ES6 promise so the rest of the framework handles ES6 promises only
6
- * @deprecated Will be removed in v13, please use Playwright instead
7
- * @param promise
8
- */
9
- function convertPromise(promise) {
10
- return new Promise(function (resolve, reject) { return promise.then(resolve, reject); });
11
- }
12
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/core/protractor/utils.ts"],"names":[],"mappings":";;AASA,wCAEC;AAPD;;;;GAIG;AACH,SAAgB,cAAc,CAAI,OAA4B;IAC5D,OAAO,IAAI,OAAO,CAAI,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAA7B,CAA6B,CAAC,CAAC;AAC5E,CAAC","sourcesContent":["import {\n promise as pPromise,\n} from 'protractor';\n\n/**\n * Converts a webdriver promise to ES6 promise so the rest of the framework handles ES6 promises only\n * @deprecated Will be removed in v13, please use Playwright instead\n * @param promise\n */\nexport function convertPromise<T>(promise: pPromise.Promise<T>) {\n return new Promise<T>((resolve, reject) => promise.then(resolve, reject));\n}\n"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=_fetch-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_fetch-manager.d.ts","sourceRoot":"","sources":["../../../../src/tools/protractor/fetch-manager/_fetch-manager.ts"],"names":[],"mappings":""}