@o3r/testing 13.0.0-next.0 → 13.0.0-next.2

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 (101) hide show
  1. package/package.json +13 -30
  2. package/tools/index.d.ts +0 -1
  3. package/tools/index.d.ts.map +1 -1
  4. package/tools/index.js +0 -1
  5. package/tools/index.js.map +1 -1
  6. package/tools/path-replacement/path-replacement.d.ts +2 -2
  7. package/tools/path-replacement/path-replacement.d.ts.map +1 -1
  8. package/tools/path-replacement/path-replacement.js +2 -1
  9. package/tools/path-replacement/path-replacement.js.map +1 -1
  10. package/core/protractor/angular-materials/autocomplete-material.d.ts +0 -13
  11. package/core/protractor/angular-materials/autocomplete-material.d.ts.map +0 -1
  12. package/core/protractor/angular-materials/autocomplete-material.js +0 -37
  13. package/core/protractor/angular-materials/autocomplete-material.js.map +0 -1
  14. package/core/protractor/angular-materials/index.d.ts +0 -3
  15. package/core/protractor/angular-materials/index.d.ts.map +0 -1
  16. package/core/protractor/angular-materials/index.js +0 -6
  17. package/core/protractor/angular-materials/index.js.map +0 -1
  18. package/core/protractor/angular-materials/select-material.d.ts +0 -19
  19. package/core/protractor/angular-materials/select-material.d.ts.map +0 -1
  20. package/core/protractor/angular-materials/select-material.js +0 -113
  21. package/core/protractor/angular-materials/select-material.js.map +0 -1
  22. package/core/protractor/component-fixture.d.ts +0 -126
  23. package/core/protractor/component-fixture.d.ts.map +0 -1
  24. package/core/protractor/component-fixture.js +0 -274
  25. package/core/protractor/component-fixture.js.map +0 -1
  26. package/core/protractor/element.d.ts +0 -38
  27. package/core/protractor/element.d.ts.map +0 -1
  28. package/core/protractor/element.js +0 -145
  29. package/core/protractor/element.js.map +0 -1
  30. package/core/protractor/elements/checkbox-element.d.ts +0 -17
  31. package/core/protractor/elements/checkbox-element.d.ts.map +0 -1
  32. package/core/protractor/elements/checkbox-element.js +0 -54
  33. package/core/protractor/elements/checkbox-element.js.map +0 -1
  34. package/core/protractor/elements/index.d.ts +0 -4
  35. package/core/protractor/elements/index.d.ts.map +0 -1
  36. package/core/protractor/elements/index.js +0 -7
  37. package/core/protractor/elements/index.js.map +0 -1
  38. package/core/protractor/elements/radio-element.d.ts +0 -17
  39. package/core/protractor/elements/radio-element.d.ts.map +0 -1
  40. package/core/protractor/elements/radio-element.js +0 -56
  41. package/core/protractor/elements/radio-element.js.map +0 -1
  42. package/core/protractor/elements/select-element.d.ts +0 -15
  43. package/core/protractor/elements/select-element.d.ts.map +0 -1
  44. package/core/protractor/elements/select-element.js +0 -49
  45. package/core/protractor/elements/select-element.js.map +0 -1
  46. package/core/protractor/group.d.ts +0 -21
  47. package/core/protractor/group.d.ts.map +0 -1
  48. package/core/protractor/group.js +0 -27
  49. package/core/protractor/group.js.map +0 -1
  50. package/core/protractor/groups/index.d.ts +0 -2
  51. package/core/protractor/groups/index.d.ts.map +0 -1
  52. package/core/protractor/groups/index.js +0 -5
  53. package/core/protractor/groups/index.js.map +0 -1
  54. package/core/protractor/groups/radio-group.d.ts +0 -17
  55. package/core/protractor/groups/radio-group.d.ts.map +0 -1
  56. package/core/protractor/groups/radio-group.js +0 -80
  57. package/core/protractor/groups/radio-group.js.map +0 -1
  58. package/core/protractor/index.d.ts +0 -9
  59. package/core/protractor/index.d.ts.map +0 -1
  60. package/core/protractor/index.js +0 -11
  61. package/core/protractor/index.js.map +0 -1
  62. package/core/protractor/page-fixture.d.ts +0 -13
  63. package/core/protractor/page-fixture.d.ts.map +0 -1
  64. package/core/protractor/page-fixture.js +0 -23
  65. package/core/protractor/page-fixture.js.map +0 -1
  66. package/core/protractor/utils.d.ts +0 -8
  67. package/core/protractor/utils.d.ts.map +0 -1
  68. package/core/protractor/utils.js +0 -12
  69. package/core/protractor/utils.js.map +0 -1
  70. package/tools/protractor/fetch-manager/_fetch-manager.d.ts +0 -1
  71. package/tools/protractor/fetch-manager/_fetch-manager.d.ts.map +0 -1
  72. package/tools/protractor/fetch-manager/_fetch-manager.js +0 -127
  73. package/tools/protractor/fetch-manager/_fetch-manager.js.map +0 -1
  74. package/tools/protractor/fetch-manager/index.d.ts +0 -2
  75. package/tools/protractor/fetch-manager/index.d.ts.map +0 -1
  76. package/tools/protractor/fetch-manager/index.js +0 -5
  77. package/tools/protractor/fetch-manager/index.js.map +0 -1
  78. package/tools/protractor/fetch-manager/utils.d.ts +0 -25
  79. package/tools/protractor/fetch-manager/utils.d.ts.map +0 -1
  80. package/tools/protractor/fetch-manager/utils.js +0 -81
  81. package/tools/protractor/fetch-manager/utils.js.map +0 -1
  82. package/tools/protractor/index.d.ts +0 -3
  83. package/tools/protractor/index.d.ts.map +0 -1
  84. package/tools/protractor/index.js +0 -6
  85. package/tools/protractor/index.js.map +0 -1
  86. package/tools/protractor/post-message-interceptor/_post-message-interceptor.d.ts +0 -5
  87. package/tools/protractor/post-message-interceptor/_post-message-interceptor.d.ts.map +0 -1
  88. package/tools/protractor/post-message-interceptor/_post-message-interceptor.js +0 -157
  89. package/tools/protractor/post-message-interceptor/_post-message-interceptor.js.map +0 -1
  90. package/tools/protractor/post-message-interceptor/core.d.ts +0 -17
  91. package/tools/protractor/post-message-interceptor/core.d.ts.map +0 -1
  92. package/tools/protractor/post-message-interceptor/core.js +0 -3
  93. package/tools/protractor/post-message-interceptor/core.js.map +0 -1
  94. package/tools/protractor/post-message-interceptor/index.d.ts +0 -3
  95. package/tools/protractor/post-message-interceptor/index.d.ts.map +0 -1
  96. package/tools/protractor/post-message-interceptor/index.js +0 -6
  97. package/tools/protractor/post-message-interceptor/index.js.map +0 -1
  98. package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts +0 -45
  99. package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts.map +0 -1
  100. package/tools/protractor/post-message-interceptor/post-message-interceptor.js +0 -144
  101. package/tools/protractor/post-message-interceptor/post-message-interceptor.js.map +0 -1
@@ -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":""}
@@ -1,127 +0,0 @@
1
- "use strict";
2
- /**
3
- * Note: This file is not part of the running script, it is injected in the browser while running e2e tests.
4
- */
5
- (function () {
6
- var MAX_WAITING_TIME_FOR_FETCH = 45 * 1000; // 45 seconds
7
- var fetchManager = /** @class */ (function () {
8
- function FetchManager() {
9
- this.nbCurrentFetch = 0;
10
- }
11
- FetchManager.prototype.interceptor = function (ref, nativeFetch) {
12
- var args = [];
13
- for (var _i = 2; _i < arguments.length; _i++) {
14
- args[_i - 2] = arguments[_i];
15
- }
16
- var promise = Promise.resolve(args);
17
- promise = promise.then(function () {
18
- ref.nbCurrentFetch++;
19
- return [args[0], args[1]];
20
- }, function (error) {
21
- return Promise.reject(new Error(error));
22
- });
23
- promise = promise.then(function () { return nativeFetch.apply(void 0, args); });
24
- promise = promise.then(function (response) {
25
- ref.nbCurrentFetch--;
26
- return response;
27
- }, function (error) {
28
- ref.nbCurrentFetch--;
29
- return Promise.reject(new Error(error));
30
- });
31
- return promise;
32
- };
33
- /**
34
- * Register the fetch events to count the number of pending fetch.
35
- */
36
- FetchManager.prototype.registerFetchInterceptor = function () {
37
- var _this = this;
38
- var nativeFetch = window.fetch;
39
- // eslint-disable-next-line @typescript-eslint/no-this-alias, unicorn/no-this-assignment -- needed for the context
40
- var that = this;
41
- Object.assign(window, { fetch: function () {
42
- var args = [];
43
- for (var _i = 0; _i < arguments.length; _i++) {
44
- args[_i] = arguments[_i];
45
- }
46
- return _this.interceptor.apply(_this, __spreadArray([that, nativeFetch], args, false));
47
- } });
48
- };
49
- FetchManager.prototype.unregisterFetchInterceptor = function () {
50
- Object.assign(window, { fetch: this.windowFetch });
51
- };
52
- /**
53
- * Returns the single instance of FetchManager
54
- */
55
- FetchManager.getInstance = function () {
56
- return this._instance || (this._instance = new this());
57
- };
58
- /**
59
- * Initialize the fetch manager
60
- */
61
- FetchManager.prototype.init = function () {
62
- this.nbCurrentFetch = 0;
63
- this.registerFetchInterceptor();
64
- };
65
- /**
66
- * Stop the interceptor
67
- */
68
- FetchManager.prototype.stop = function () {
69
- this.nbCurrentFetch = 0;
70
- this.unregisterFetchInterceptor();
71
- };
72
- /**
73
- * Get the number of active fetchs on the page.
74
- */
75
- FetchManager.prototype.getPendingFetchs = function () {
76
- return this.nbCurrentFetch;
77
- };
78
- /**
79
- * This function waits for all fetchs calls to be resolved and the page to be stable to call the callback.
80
- * It permits to easily run synchronous tests with protractor.
81
- * This is very usefull in the case of Otter calls to backend because protractor synchronization manager do not care
82
- * about fetchs calls. As a consequence, the `waitForAngular` method will not work.
83
- * @param callback : Callback called when all the fetchs are finished and the page is stable.
84
- * @param timeoutInterval : Interval in milliseconds between two checks of the number of pending fetchs
85
- */
86
- FetchManager.prototype.waitForFetchs = function (callback, timeoutInterval) {
87
- var _this = this;
88
- if (timeoutInterval === void 0) { timeoutInterval = 100; }
89
- var interval;
90
- var timeout;
91
- if (!this.getPendingFetchs()) {
92
- callback();
93
- return;
94
- }
95
- var cancelPolling = function () {
96
- if (interval) {
97
- clearInterval(interval);
98
- interval = undefined;
99
- }
100
- if (timeout) {
101
- clearTimeout(timeout);
102
- timeout = undefined;
103
- }
104
- // Handle polling result
105
- if (_this.getPendingFetchs() > 0) {
106
- // Error case will just log in console
107
- // and allow to continue as o3r elements might be checking fetchManager
108
- // concurrently
109
- _this.nbCurrentFetch = 0;
110
- callback();
111
- throw new Error('Fetch timeout. Please check network requests.');
112
- }
113
- else {
114
- callback();
115
- }
116
- };
117
- var polling = function () { return _this.getPendingFetchs() > 0 || cancelPolling(); };
118
- interval = setInterval(polling, timeoutInterval);
119
- timeout = setTimeout(cancelPolling, MAX_WAITING_TIME_FOR_FETCH);
120
- };
121
- return FetchManager;
122
- }());
123
- if (!('fetchManager' in window)) {
124
- Object.assign(window, { fetchManager: fetchManager });
125
- }
126
- })();
127
- //# sourceMappingURL=_fetch-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_fetch-manager.js","sourceRoot":"","sources":["../../../../src/tools/protractor/fetch-manager/_fetch-manager.ts"],"names":[],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- export * from './utils';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/protractor/fetch-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,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("./utils"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/protractor/fetch-manager/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB","sourcesContent":["export * from './utils';\n"]}
@@ -1,25 +0,0 @@
1
- /**
2
- * This function waits for all fetchs calls to be resolved and the page to be stable to resolve the promise.
3
- * It permits to easily run synchronous e2e tests on a flow that uses fetchs calls with protractor.
4
- * This is very useful in the case of Otter calls to backend because protractor synchronization manager do not care
5
- * about fetchs calls.
6
- *
7
- * This function needs the FetchManager to have been initialized and injected in the browser at the beginning of the
8
- * flow with `initFetchManager()`
9
- *
10
- * You can ignore the waiting of fetchs by setting `browser.ignoreSynchronization` to `true`
11
- * @deprecated Will be removed in v13, please use Playwright instead
12
- */
13
- export declare function waitForOtterStable(): Promise<void>;
14
- /**
15
- * This function initiliaze the FetchManager. Set `window.fetch` variable with a custom behaviour in order to count the
16
- * fetch calls.
17
- * @deprecated Will be removed in v13, please use Playwright instead
18
- */
19
- export declare function initFetchManager(): Promise<void>;
20
- /**
21
- * This function stops the FetchManager. Reset `window.fetch` variable with its native behaviour.
22
- * @deprecated Will be removed in v13, please use Playwright instead
23
- */
24
- export declare function stopFetchManager(): Promise<void>;
25
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/protractor/fetch-manager/utils.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,kBAOvC;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,kBAQrC;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,kBAErC"}