@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.
- package/core/angular/angular-materials/autocomplete-material.d.ts +0 -1
- package/core/angular/angular-materials/autocomplete-material.d.ts.map +1 -1
- package/core/angular/angular-materials/autocomplete-material.js.map +1 -1
- package/core/angular/angular-materials/select-material.d.ts +0 -1
- package/core/angular/angular-materials/select-material.d.ts.map +1 -1
- package/core/angular/angular-materials/select-material.js +4 -3
- package/core/angular/angular-materials/select-material.js.map +1 -1
- package/core/angular/angular-materials/slider-material.d.ts.map +1 -1
- package/core/angular/angular-materials/slider-material.js.map +1 -1
- package/core/angular/component-fixture.d.ts.map +1 -1
- package/core/angular/component-fixture.js +3 -10
- package/core/angular/component-fixture.js.map +1 -1
- package/core/angular/element.d.ts.map +1 -1
- package/core/angular/element.js +2 -2
- package/core/angular/element.js.map +1 -1
- package/core/angular/elements/checkbox-element.d.ts.map +1 -1
- package/core/angular/elements/checkbox-element.js.map +1 -1
- package/core/angular/elements/radio-element.d.ts.map +1 -1
- package/core/angular/elements/radio-element.js.map +1 -1
- package/core/angular/elements/select-element.d.ts +0 -1
- package/core/angular/elements/select-element.d.ts.map +1 -1
- package/core/angular/elements/select-element.js +2 -2
- package/core/angular/elements/select-element.js.map +1 -1
- package/core/angular/elements/slider-element.d.ts +2 -1
- package/core/angular/elements/slider-element.d.ts.map +1 -1
- package/core/angular/elements/slider-element.js +2 -1
- package/core/angular/elements/slider-element.js.map +1 -1
- package/core/angular/group.d.ts.map +1 -1
- package/core/angular/group.js.map +1 -1
- package/core/angular/groups/radio-group.d.ts.map +1 -1
- package/core/angular/groups/radio-group.js.map +1 -1
- package/core/angular/index.d.ts +3 -2
- package/core/angular/index.d.ts.map +1 -1
- package/core/angular/index.js +2 -2
- package/core/angular/index.js.map +1 -1
- package/core/angular/page-fixture.d.ts.map +1 -1
- package/core/angular/page-fixture.js.map +1 -1
- package/core/angular-materials/autocomplete-material.d.ts.map +1 -1
- package/core/angular-materials/autocomplete-material.js.map +1 -1
- package/core/angular-materials/select-material.d.ts.map +1 -1
- package/core/angular-materials/select-material.js.map +1 -1
- package/core/angular-materials/slider-material.d.ts.map +1 -1
- package/core/angular-materials/slider-material.js.map +1 -1
- package/core/component-fixture.d.ts +18 -36
- package/core/component-fixture.d.ts.map +1 -1
- package/core/component-fixture.js +18 -36
- package/core/component-fixture.js.map +1 -1
- package/core/element.d.ts.map +1 -1
- package/core/element.js.map +1 -1
- package/core/elements/checkbox-element.d.ts.map +1 -1
- package/core/elements/checkbox-element.js.map +1 -1
- package/core/elements/radio-element.d.ts.map +1 -1
- package/core/elements/radio-element.js.map +1 -1
- package/core/elements/select-element.d.ts.map +1 -1
- package/core/elements/select-element.js.map +1 -1
- package/core/elements/slider-element.d.ts.map +1 -1
- package/core/elements/slider-element.js.map +1 -1
- package/core/group.d.ts.map +1 -1
- package/core/group.js.map +1 -1
- package/core/groups/radio-group.d.ts.map +1 -1
- package/core/groups/radio-group.js.map +1 -1
- package/core/helpers.d.ts +1 -1
- package/core/helpers.d.ts.map +1 -1
- package/core/helpers.js.map +1 -1
- package/core/index.d.ts +2 -2
- package/core/index.d.ts.map +1 -1
- package/core/index.js +2 -2
- package/core/index.js.map +1 -1
- package/core/page-fixture.d.ts.map +1 -1
- package/core/page-fixture.js.map +1 -1
- package/core/playwright/angular-materials/autocomplete-material.d.ts +0 -1
- package/core/playwright/angular-materials/autocomplete-material.d.ts.map +1 -1
- package/core/playwright/angular-materials/autocomplete-material.js +1 -1
- package/core/playwright/angular-materials/autocomplete-material.js.map +1 -1
- package/core/playwright/angular-materials/select-material.d.ts +0 -1
- package/core/playwright/angular-materials/select-material.d.ts.map +1 -1
- package/core/playwright/angular-materials/select-material.js +3 -3
- package/core/playwright/angular-materials/select-material.js.map +1 -1
- package/core/playwright/angular-materials/slider-material.d.ts.map +1 -1
- package/core/playwright/angular-materials/slider-material.js.map +1 -1
- package/core/playwright/component-fixture.d.ts.map +1 -1
- package/core/playwright/component-fixture.js +2 -10
- package/core/playwright/component-fixture.js.map +1 -1
- package/core/playwright/element.d.ts.map +1 -1
- package/core/playwright/element.js +11 -10
- package/core/playwright/element.js.map +1 -1
- package/core/playwright/elements/checkbox-element.d.ts +2 -1
- package/core/playwright/elements/checkbox-element.d.ts.map +1 -1
- package/core/playwright/elements/checkbox-element.js +4 -1
- package/core/playwright/elements/checkbox-element.js.map +1 -1
- package/core/playwright/elements/index.d.ts +2 -2
- package/core/playwright/elements/index.d.ts.map +1 -1
- package/core/playwright/elements/index.js +2 -2
- package/core/playwright/elements/index.js.map +1 -1
- package/core/playwright/elements/radio-element.d.ts.map +1 -1
- package/core/playwright/elements/radio-element.js +1 -0
- package/core/playwright/elements/radio-element.js.map +1 -1
- package/core/playwright/elements/select-element.d.ts.map +1 -1
- package/core/playwright/elements/select-element.js.map +1 -1
- package/core/playwright/elements/slider-element.d.ts.map +1 -1
- package/core/playwright/elements/slider-element.js.map +1 -1
- package/core/playwright/group.d.ts.map +1 -1
- package/core/playwright/group.js.map +1 -1
- package/core/playwright/groups/radio-group.d.ts.map +1 -1
- package/core/playwright/groups/radio-group.js.map +1 -1
- package/core/playwright/index.d.ts +3 -2
- package/core/playwright/index.d.ts.map +1 -1
- package/core/playwright/index.js +2 -2
- package/core/playwright/index.js.map +1 -1
- package/core/playwright/page-fixture.d.ts.map +1 -1
- package/core/playwright/page-fixture.js.map +1 -1
- package/core/protractor/angular-materials/autocomplete-material.d.ts +0 -1
- package/core/protractor/angular-materials/autocomplete-material.d.ts.map +1 -1
- package/core/protractor/angular-materials/autocomplete-material.js.map +1 -1
- package/core/protractor/angular-materials/select-material.d.ts +0 -1
- package/core/protractor/angular-materials/select-material.d.ts.map +1 -1
- package/core/protractor/angular-materials/select-material.js +7 -6
- package/core/protractor/angular-materials/select-material.js.map +1 -1
- package/core/protractor/component-fixture.d.ts.map +1 -1
- package/core/protractor/component-fixture.js +6 -11
- package/core/protractor/component-fixture.js.map +1 -1
- package/core/protractor/element.d.ts.map +1 -1
- package/core/protractor/element.js +6 -4
- package/core/protractor/element.js.map +1 -1
- package/core/protractor/elements/checkbox-element.d.ts.map +1 -1
- package/core/protractor/elements/checkbox-element.js.map +1 -1
- package/core/protractor/elements/index.d.ts +1 -1
- package/core/protractor/elements/index.d.ts.map +1 -1
- package/core/protractor/elements/index.js +1 -1
- package/core/protractor/elements/index.js.map +1 -1
- package/core/protractor/elements/radio-element.d.ts.map +1 -1
- package/core/protractor/elements/radio-element.js +1 -0
- package/core/protractor/elements/radio-element.js.map +1 -1
- package/core/protractor/elements/select-element.d.ts +0 -1
- package/core/protractor/elements/select-element.d.ts.map +1 -1
- package/core/protractor/elements/select-element.js.map +1 -1
- package/core/protractor/group.d.ts.map +1 -1
- package/core/protractor/group.js.map +1 -1
- package/core/protractor/groups/radio-group.d.ts.map +1 -1
- package/core/protractor/groups/radio-group.js +1 -0
- package/core/protractor/groups/radio-group.js.map +1 -1
- package/core/protractor/index.d.ts +3 -2
- package/core/protractor/index.d.ts.map +1 -1
- package/core/protractor/index.js +2 -2
- package/core/protractor/index.js.map +1 -1
- package/core/protractor/page-fixture.d.ts.map +1 -1
- package/core/protractor/page-fixture.js.map +1 -1
- package/core/protractor/utils.d.ts.map +1 -1
- package/core/protractor/utils.js.map +1 -1
- package/esm/visual-test/utils.d.ts +2 -2
- package/esm/visual-test/utils.js +3 -3
- package/esm/visual-test/utils.js.map +1 -1
- package/kassette/update-dates-in-mocks.d.ts.map +1 -1
- package/kassette/update-dates-in-mocks.js +3 -3
- package/kassette/update-dates-in-mocks.js.map +1 -1
- package/localization/localization-mock.d.ts.map +1 -1
- package/localization/localization-mock.js.map +1 -1
- package/mocks/mock-component-generator.d.ts +1 -1
- package/mocks/mock-component-generator.d.ts.map +1 -1
- package/mocks/mock-component-generator.js +15 -14
- package/mocks/mock-component-generator.js.map +1 -1
- package/package.json +23 -18
- package/schematics/add-functions-to-fixture/helpers.d.ts +0 -2
- package/schematics/add-functions-to-fixture/helpers.d.ts.map +1 -1
- package/schematics/add-functions-to-fixture/helpers.js +2 -4
- package/schematics/add-functions-to-fixture/helpers.js.map +1 -1
- package/schematics/add-functions-to-fixture/index.d.ts.map +1 -1
- package/schematics/add-functions-to-fixture/index.js +6 -6
- package/schematics/add-functions-to-fixture/index.js.map +1 -1
- package/schematics/add-functions-to-fixture/schema.d.ts.map +1 -1
- package/schematics/fixture-to-component/index.d.ts.map +1 -1
- package/schematics/fixture-to-component/index.js +1 -1
- package/schematics/fixture-to-component/index.js.map +1 -1
- package/schematics/fixture-to-component/schema.d.ts.map +1 -1
- package/schematics/ng-add/fixture/index.d.ts.map +1 -1
- package/schematics/ng-add/fixture/index.js +4 -5
- package/schematics/ng-add/fixture/index.js.map +1 -1
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +16 -23
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/playwright/index.d.ts.map +1 -1
- package/schematics/ng-add/playwright/index.js +5 -5
- package/schematics/ng-add/playwright/index.js.map +1 -1
- package/schematics/ng-add/schema.d.ts.map +1 -1
- package/schematics/ng-update/v9-0/index.d.ts.map +1 -1
- package/schematics/ng-update/v9-0/index.js +1 -1
- package/schematics/ng-update/v9-0/index.js.map +1 -1
- package/schematics/ng-update/v9-0/localization-imports/localization-imports-map.d.ts.map +1 -1
- package/schematics/ng-update/v9-0/localization-imports/localization-imports-map.js.map +1 -1
- package/schematics/ng-update/v9-0/localization-imports/localization-imports.d.ts.map +1 -1
- package/schematics/ng-update/v9-0/localization-imports/localization-imports.js +1 -2
- package/schematics/ng-update/v9-0/localization-imports/localization-imports.js.map +1 -1
- package/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.d.ts.map +1 -1
- package/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.js +13 -13
- package/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.js.map +1 -1
- package/schematics/playwright/sanity/index.d.ts.map +1 -1
- package/schematics/playwright/sanity/index.js.map +1 -1
- package/schematics/playwright/sanity/schema.d.ts.map +1 -1
- package/schematics/playwright/scenario/index.d.ts.map +1 -1
- package/schematics/playwright/scenario/index.js.map +1 -1
- package/schematics/playwright/scenario/schema.d.ts.map +1 -1
- package/store/testable-select.d.ts +1 -1
- package/store/testable-select.d.ts.map +1 -1
- package/store/testable-select.js +3 -2
- package/store/testable-select.js.map +1 -1
- package/store/typings.d.ts.map +1 -1
- package/store/typings.js.map +1 -1
- package/tools/index.d.ts +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +1 -1
- package/tools/index.js.map +1 -1
- package/tools/path-replacement/path-replacement.d.ts.map +1 -1
- package/tools/path-replacement/path-replacement.js +6 -7
- package/tools/path-replacement/path-replacement.js.map +1 -1
- package/tools/protractor/fetch-manager/utils.d.ts.map +1 -1
- package/tools/protractor/fetch-manager/utils.js.map +1 -1
- package/tools/protractor/post-message-interceptor/post-message-interceptor.d.ts.map +1 -1
- package/tools/protractor/post-message-interceptor/post-message-interceptor.js.map +1 -1
- package/visual-test/utils.d.ts +2 -2
- package/visual-test/utils.js +3 -3
- package/visual-test/utils.js.map +1 -1
- package/visual-test/visual-test.d.ts +1 -1
- package/visual-test/visual-test.d.ts.map +1 -1
- package/visual-test/visual-test.js +6 -6
- package/visual-test/visual-test.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-material.js","sourceRoot":"","sources":["../../../src/core/angular-materials/autocomplete-material.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"autocomplete-material.js","sourceRoot":"","sources":["../../../src/core/angular-materials/autocomplete-material.ts"],"names":[],"mappings":";;;;AAAA,4CAE4B;AAC5B,sCAGoB;AAepB;;;GAGG;AACH;IAAqC,2CAAU;IAC7C,yBAAY,cAAmB;QAC7B,OAAA,MAAK,YAAC,cAAc,CAAC,SAAC;IACxB,CAAC;IAED;;;;OAIG;IACI,uCAAa,GAApB,UAAqB,MAAc,EAAE,QAAiB;QACpD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,sBAAC;AAAD,CAAC,AAbD,CAAqC,oBAAU,GAa9C;AAbY,0CAAe","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../../errors/index';\nimport {\n ElementProfile,\n O3rElement,\n} from '../element';\n\n/**\n * Interface to describe the material autocomplete elements that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface MatAutocompleteProfile extends ElementProfile {\n\n /**\n * Select an element in a dropdown by value.\n */\n selectByValue(value: string): Promise<void>;\n}\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class MatAutocomplete extends O3rElement implements MatAutocompleteProfile {\n constructor(_sourceElement: any) {\n super(_sourceElement);\n }\n\n /**\n * Select an element in a dropdown by value.\n * @param _value\n * @param _timeout\n */\n public selectByValue(_value: string, _timeout?: number): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-material.d.ts","sourceRoot":"","sources":["../../../src/core/angular-materials/select-material.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-material.d.ts","sourceRoot":"","sources":["../../../src/core/angular-materials/select-material.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACX,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;CAAG;AAEjE;;;GAGG;AACH,qBAAa,SAAU,SAAQ,UAAW,YAAW,gBAAgB;gBACvD,cAAc,EAAE,GAAG;IAI/B;;;;OAIG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE;;;;;OAKG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE;;;;OAIG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-material.js","sourceRoot":"","sources":["../../../src/core/angular-materials/select-material.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"select-material.js","sourceRoot":"","sources":["../../../src/core/angular-materials/select-material.ts"],"names":[],"mappings":";;;;AAAA,4CAE4B;AAC5B,sCAEoB;AAYpB;;;GAGG;AACH;IAA+B,qCAAU;IACvC,mBAAY,cAAmB;QAC7B,OAAA,MAAK,YAAC,cAAc,CAAC,SAAC;IACxB,CAAC;IAED;;;;OAIG;IACI,iCAAa,GAApB,UAAqB,MAAc,EAAE,QAAiB;QACpD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACI,iCAAa,GAApB,UAAqB,MAAc,EAAE,QAAiB;QACpD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;OAIG;IACI,iCAAa,GAApB,UAAqB,MAAc,EAAE,QAAiB;QACpD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,gBAAC;AAAD,CAAC,AAhCD,CAA+B,oBAAU,GAgCxC;AAhCY,8BAAS","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../../errors/index';\nimport {\n O3rElement,\n} from '../element';\nimport {\n SelectElementProfile,\n} from '../elements';\n\n/**\n * Interface to describe the material select elements that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface MatSelectProfile extends SelectElementProfile {}\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class MatSelect extends O3rElement implements MatSelectProfile {\n constructor(_sourceElement: any) {\n super(_sourceElement);\n }\n\n /**\n * Select an element in a dropdown by index.\n * @param _index\n * @param _timeout\n */\n public selectByIndex(_index: number, _timeout?: number): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * Select an element in a dropdown by value.\n * @param _value\n * @param _timeout\n * @deprecated selectByValue relies on ng-reflect-value, which doesn't work when app is in production mode\n */\n public selectByValue(_value: string, _timeout?: number): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * Select an element in a dropdown by label.\n * @param _label\n * @param _timeout\n */\n public selectByLabel(_label: string, _timeout?: number): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider-material.d.ts","sourceRoot":"","sources":["../../../src/core/angular-materials/slider-material.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"slider-material.d.ts","sourceRoot":"","sources":["../../../src/core/angular-materials/slider-material.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACX,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;CAAG;AAEjE;;;GAGG;AACH,qBAAa,SAAU,SAAQ,UAAW,YAAW,gBAAgB;gBACvD,aAAa,EAAE,GAAG;CAG/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider-material.js","sourceRoot":"","sources":["../../../src/core/angular-materials/slider-material.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"slider-material.js","sourceRoot":"","sources":["../../../src/core/angular-materials/slider-material.ts"],"names":[],"mappings":";;;;AAAA,sCAEoB;AAYpB;;;GAGG;AACH;IAA+B,qCAAU;IACvC,mBAAY,aAAkB;QAC5B,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IACH,gBAAC;AAAD,CAAC,AAJD,CAA+B,oBAAU,GAIxC;AAJY,8BAAS","sourcesContent":["import {\n O3rElement,\n} from '../element';\nimport type {\n SliderElementProfile,\n} from '../elements';\n\n/**\n * Interface to describe the material Slider elements that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface MatSliderProfile extends SliderElementProfile {}\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class MatSlider extends O3rElement implements MatSliderProfile {\n constructor(sourceElement: any) {\n super(sourceElement);\n }\n}\n"]}
|
|
@@ -117,18 +117,12 @@ export declare class O3rComponentFixture<V extends O3rElement = O3rElement> impl
|
|
|
117
117
|
}): Promise<T | undefined>;
|
|
118
118
|
/**
|
|
119
119
|
* Get text from the element associated to the given selector, or undefined if the element is not found or not visible
|
|
120
|
-
* @param
|
|
121
|
-
* @param
|
|
122
|
-
* @param
|
|
123
|
-
* @param
|
|
124
|
-
* @param
|
|
125
|
-
* @param
|
|
126
|
-
* @param _selector
|
|
127
|
-
* @param _options
|
|
128
|
-
* @param _options.elementConstructor
|
|
129
|
-
* @param _options.index
|
|
130
|
-
* @param _options.shouldThrowIfNotPresent
|
|
131
|
-
* @param _options.timeout
|
|
120
|
+
* @param _selector Selector to access the element
|
|
121
|
+
* @param _options Options supported
|
|
122
|
+
* @param _options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement
|
|
123
|
+
* @param _options.index index Select the element associated to the index
|
|
124
|
+
* @param _options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present
|
|
125
|
+
* @param _options.timeout Duration to wait for the element to be present before it throws
|
|
132
126
|
*/
|
|
133
127
|
protected getText<T extends O3rElement>(_selector: string, _options?: {
|
|
134
128
|
elementConstructor?: O3rElementConstructor<T> | undefined;
|
|
@@ -138,18 +132,12 @@ export declare class O3rComponentFixture<V extends O3rElement = O3rElement> impl
|
|
|
138
132
|
}): Promise<string | undefined>;
|
|
139
133
|
/**
|
|
140
134
|
* Check if the element associated to the given selector is visible
|
|
141
|
-
* @param
|
|
142
|
-
* @param
|
|
143
|
-
* @param
|
|
144
|
-
* @param
|
|
145
|
-
* @param
|
|
146
|
-
* @param
|
|
147
|
-
* @param _selector
|
|
148
|
-
* @param _options
|
|
149
|
-
* @param _options.elementConstructor
|
|
150
|
-
* @param _options.index
|
|
151
|
-
* @param _options.shouldThrowIfNotPresent
|
|
152
|
-
* @param _options.timeout
|
|
135
|
+
* @param _selector Selector to access the element
|
|
136
|
+
* @param _options Options supported
|
|
137
|
+
* @param _options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement
|
|
138
|
+
* @param _options.index index Select the element associated to the index
|
|
139
|
+
* @param _options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present
|
|
140
|
+
* @param _options.timeout Duration to wait for the element to be present before it throws
|
|
153
141
|
*/
|
|
154
142
|
protected isVisible<T extends O3rElement>(_selector: string, _options?: {
|
|
155
143
|
elementConstructor?: O3rElementConstructor<T> | undefined;
|
|
@@ -159,18 +147,12 @@ export declare class O3rComponentFixture<V extends O3rElement = O3rElement> impl
|
|
|
159
147
|
}): Promise<boolean>;
|
|
160
148
|
/**
|
|
161
149
|
* Click on the element associated to the given selector if it exists and is visible
|
|
162
|
-
* @param
|
|
163
|
-
* @param
|
|
164
|
-
* @param
|
|
165
|
-
* @param
|
|
166
|
-
* @param
|
|
167
|
-
* @param
|
|
168
|
-
* @param _selector
|
|
169
|
-
* @param _options
|
|
170
|
-
* @param _options.elementConstructor
|
|
171
|
-
* @param _options.index
|
|
172
|
-
* @param _options.shouldThrowIfNotPresent
|
|
173
|
-
* @param _options.timeout
|
|
150
|
+
* @param _selector Selector to access the element
|
|
151
|
+
* @param _options Options supported
|
|
152
|
+
* @param _options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement
|
|
153
|
+
* @param _options.index index Select the element associated to the index
|
|
154
|
+
* @param _options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present
|
|
155
|
+
* @param _options.timeout Duration to wait for the element to be present before it throws
|
|
174
156
|
*/
|
|
175
157
|
protected click<T extends O3rElement>(_selector: string, _options?: {
|
|
176
158
|
elementConstructor?: O3rElementConstructor<T> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-fixture.d.ts","sourceRoot":"","sources":["../../src/core/component-fixture.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component-fixture.d.ts","sourceRoot":"","sources":["../../src/core/component-fixture.ts"],"names":[],"mappings":"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"}
|
|
@@ -34,18 +34,12 @@ var O3rComponentFixture = /** @class */ (function () {
|
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
36
|
* Get text from the element associated to the given selector, or undefined if the element is not found or not visible
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param _selector
|
|
44
|
-
* @param _options
|
|
45
|
-
* @param _options.elementConstructor
|
|
46
|
-
* @param _options.index
|
|
47
|
-
* @param _options.shouldThrowIfNotPresent
|
|
48
|
-
* @param _options.timeout
|
|
37
|
+
* @param _selector Selector to access the element
|
|
38
|
+
* @param _options Options supported
|
|
39
|
+
* @param _options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement
|
|
40
|
+
* @param _options.index index Select the element associated to the index
|
|
41
|
+
* @param _options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present
|
|
42
|
+
* @param _options.timeout Duration to wait for the element to be present before it throws
|
|
49
43
|
*/
|
|
50
44
|
O3rComponentFixture.prototype.getText = function (_selector, _options) {
|
|
51
45
|
if (_options === void 0) { _options = {}; }
|
|
@@ -53,18 +47,12 @@ var O3rComponentFixture = /** @class */ (function () {
|
|
|
53
47
|
};
|
|
54
48
|
/**
|
|
55
49
|
* Check if the element associated to the given selector is visible
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
* @param _selector
|
|
63
|
-
* @param _options
|
|
64
|
-
* @param _options.elementConstructor
|
|
65
|
-
* @param _options.index
|
|
66
|
-
* @param _options.shouldThrowIfNotPresent
|
|
67
|
-
* @param _options.timeout
|
|
50
|
+
* @param _selector Selector to access the element
|
|
51
|
+
* @param _options Options supported
|
|
52
|
+
* @param _options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement
|
|
53
|
+
* @param _options.index index Select the element associated to the index
|
|
54
|
+
* @param _options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present
|
|
55
|
+
* @param _options.timeout Duration to wait for the element to be present before it throws
|
|
68
56
|
*/
|
|
69
57
|
O3rComponentFixture.prototype.isVisible = function (_selector, _options) {
|
|
70
58
|
if (_options === void 0) { _options = {}; }
|
|
@@ -72,18 +60,12 @@ var O3rComponentFixture = /** @class */ (function () {
|
|
|
72
60
|
};
|
|
73
61
|
/**
|
|
74
62
|
* Click on the element associated to the given selector if it exists and is visible
|
|
75
|
-
* @param
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
78
|
-
* @param
|
|
79
|
-
* @param
|
|
80
|
-
* @param
|
|
81
|
-
* @param _selector
|
|
82
|
-
* @param _options
|
|
83
|
-
* @param _options.elementConstructor
|
|
84
|
-
* @param _options.index
|
|
85
|
-
* @param _options.shouldThrowIfNotPresent
|
|
86
|
-
* @param _options.timeout
|
|
63
|
+
* @param _selector Selector to access the element
|
|
64
|
+
* @param _options Options supported
|
|
65
|
+
* @param _options.elementConstructor Constructor that will be used to create the Element, defaults to O3rElement
|
|
66
|
+
* @param _options.index index Select the element associated to the index
|
|
67
|
+
* @param _options.shouldThrowIfNotPresent If set to true the function will throw if the element is not present
|
|
68
|
+
* @param _options.timeout Duration to wait for the element to be present before it throws
|
|
87
69
|
*/
|
|
88
70
|
O3rComponentFixture.prototype.click = function (_selector, _options) {
|
|
89
71
|
if (_options === void 0) { _options = {}; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-fixture.js","sourceRoot":"","sources":["../../src/core/component-fixture.ts"],"names":[],"mappings":";;;AAAA,yCAAgE;AAyFhE;;;GAGG;AACH;IACE,6BAAY,QAAY;QACtB,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACO,qDAAuB,GAAjC,UAAwD,QAAuB,EAAE,QAAiB;QAChG,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACO,8CAAgB,GAA1B,UAAiD,QAAgC,EAAE,QAAiB;QAClG,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IA6BS,8CAAgB,GAA1B,UACE,SAAiB,EACjB,mBAAyD,EACzD,QAIM;QAJN,yBAAA,EAAA,aAIM;QAEN,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACO,qCAAO,GAAjB,UAAwC,SAAiB,EAAE,QAKrD;QALqD,yBAAA,EAAA,aAKrD;QACJ,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACO,uCAAS,GAAnB,UAA0C,SAAiB,EAAE,QAKvD;QALuD,yBAAA,EAAA,aAKvD;QACJ,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACO,mCAAK,GAAf,UAAsC,SAAiB,EAAE,QAKnD;QALmD,yBAAA,EAAA,aAKnD;QACJ,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAMD,kBAAkB;IACX,mCAAK,GAAZ,UAAmC,SAAiB,EAAE,WAAiD;QACrG,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAQD,kBAAkB;IACX,sCAAQ,GAAf,UACE,SAAiB,EACjB,WAAiD,EACjD,UAAiD,EACjD,QAAiB;QAEjB,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,wCAAU,GAAjB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,8CAAgB,GAAvB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,6CAAe,GAAtB,UAAuB,SAAiB,EAAE,QAAiB;QACzD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAOM,sCAAQ,GAAf,UAA0C,SAAiB,EAAE,MAAc,EAAE,WAAiD;QAC5H,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,0BAAC;AAAD,CAAC,AAxLD,IAwLC;AAxLY,kDAAmB","sourcesContent":["import { TranspilationPurposeOnlyError } from '../errors/index';\nimport { ElementProfile, O3rElement, O3rElementConstructor } from './element';\nimport { GroupProfile, O3rGroupConstructor } from './group';\n\n/**\n * Interface to describe the Component fixture that is used as an abstraction layer to access the DOM of a component.\n * It comes with two implementations that are chosen a build time whether you will use it in a karma or protractor\n * runtime. This way the same fixture is usable for both component and e2e tests.\n */\nexport interface ComponentFixtureProfile<V extends ElementProfile = ElementProfile> {\n /**\n * Return the root element of the component fixture.\n */\n getElement(): V | undefined;\n\n /**\n * Queries an element using the CSS selector passed as argument.\n * If the fixture has a context (was created with a TestBed or Protractor element) the query will be applied\n * to this element's tree only.\n * @param selector CSS selector for the desired element\n * @param returnType Constructor of the element expected\n */\n query(selector: string, returnType?: undefined): Promise<ElementProfile | undefined>;\n query<T extends ElementProfile>(selector: string, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n query<T extends ElementProfile>(selector: string, returnType: O3rElementConstructor<T> | undefined): Promise<T | ElementProfile | undefined>;\n\n /**\n * Queries the nth element of a list using the CSS selector passed as argument.\n * If the fixture has a context (was created with a TestBed or Protractor element) the query will be applied\n * to this element's tree only.\n * @param selector CSS selector for the desired element\n * @param index Index of the element to retrieve\n * @param returnType Constructor of the element expected\n */\n queryNth(selector: string, index: number, returnType?: undefined): Promise<ElementProfile | undefined>;\n queryNth<T extends ElementProfile>(selector: string, index: number, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n queryNth<T extends ElementProfile>(selector: string, index: number, returnType: O3rElementConstructor<T> | undefined): Promise<T | ElementProfile | undefined>;\n\n /**\n * Queries a list of elements using the CSS selector passed as argument.\n * If the fixture has a context (was created with a TestBed or Protractor element) the query will be applied\n * to this element's tree only.\n * @param selector CSS selector for the desired elements\n * @param returnType Constructor of the element expected\n * @param groupType\n * @param timeout\n */\n queryAll(selector: string, returnType?: undefined, groupType?: undefined, timeout?: number): Promise<O3rElement[]>;\n queryAll<T extends ElementProfile>(selector: string, returnType: O3rElementConstructor<T>, groupType?: undefined, timeout?: number): Promise<T[]>;\n queryAll<T extends ElementProfile, K extends GroupProfile<T>>(selector: string, returnType: O3rElementConstructor<T>, groupType: O3rGroupConstructor<K, T>, timeout?: number): Promise<K>;\n queryAll<T extends ElementProfile, K extends GroupProfile<T>>(\n selector: string,\n returnType: O3rElementConstructor<T> | undefined,\n groupType: O3rGroupConstructor<K, T> | undefined,\n timeout?: number\n ): Promise<(T | O3rElement)[] | K>;\n\n /**\n * Returns the component fixtures corresponding to the sub-components.\n */\n getSubComponents(): Promise<{ [componentName: string]: ComponentFixtureProfile[] }>;\n\n /**\n * Returns true if the provided selector has no match in the document.\n * A custom timeout value can be passed for asynchronous implementations that support it.\n * @param selector\n * @param timeout\n */\n queryNotPresent(selector: string, timeout?: number): Promise<boolean>;\n}\n\n/**\n * Interface to tell typescript that the element which implements\n * it can be used as a prototype\n */\n// eslint-disable-next-line no-use-before-define\nexport type Constructable<T extends ComponentFixtureProfile, U extends FixtureWithCustom = FixtureWithCustom> = new (elem?: ElementProfile, customFixtures?: U) => T;\n\n/**\n * This is the type that has to be extended by each component fixture context\n * It contains the custom fixture type for a component presenter and its subcomponents fixtures contexts\n * key: presenter name\n * fixture: custom presenter type\n * customSubFixtures: custom fixtures for the presenter subcomponents\n */\nexport interface FixtureWithCustom {\n [fixtureKey: string]: {fixture?: Constructable<ComponentFixtureProfile, FixtureWithCustom>; customSubFixtures?: FixtureWithCustom} | undefined;\n}\n\n/**\n * Mock for Component fixture class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rComponentFixture<V extends O3rElement = O3rElement> implements ComponentFixtureProfile<V> {\n constructor(_element?: V) {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param _element ElementProfile to test\n * @param _timeout specific timeout that will throw when reach\n */\n protected throwOnUndefinedElement<T extends O3rElement>(_element: T | undefined, _timeout?: number): Promise<T> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param _element ElementProfile to test\n * @param _timeout specific timeout that will throw when reach\n */\n protected throwOnUndefined<T extends O3rElement>(_element: Promise<T | undefined>, _timeout?: number): Promise<T | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 queryWithOptions(\n _selector: string,\n _elementConstructor: undefined,\n _options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n }\n ): Promise<O3rElement | undefined>;\n protected queryWithOptions<T extends O3rElement>(\n _selector: string,\n _elementConstructor: O3rElementConstructor<T>,\n _options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n }\n ): Promise<T | undefined>;\n protected queryWithOptions<T extends O3rElement>(\n _selector: string,\n _elementConstructor: O3rElementConstructor<T> | undefined,\n _options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}\n ): Promise<T | O3rElement | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 * @param _selector\n * @param _options\n * @param _options.elementConstructor\n * @param _options.index\n * @param _options.shouldThrowIfNotPresent\n * @param _options.timeout\n */\n protected 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 throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 * @param _selector\n * @param _options\n * @param _options.elementConstructor\n * @param _options.index\n * @param _options.shouldThrowIfNotPresent\n * @param _options.timeout\n */\n protected 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 throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 * @param _selector\n * @param _options\n * @param _options.elementConstructor\n * @param _options.index\n * @param _options.shouldThrowIfNotPresent\n * @param _options.timeout\n */\n protected 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 throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public query(_selector: string, _returnType?: undefined, timeout?: number): Promise<O3rElement | undefined>;\n /** @inheritdoc */\n public query<T extends O3rElement>(_selector: string, _returnType: O3rElementConstructor<T>, timeout?: number): Promise<T | undefined>;\n /** @inheritdoc */\n public query<T extends O3rElement>(_selector: string, _returnType: O3rElementConstructor<T> | undefined): Promise<T | O3rElement | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public queryAll(_selector: string, _returnType?: undefined, _groupType?: undefined, timeout?: number): Promise<O3rElement[]>;\n /** @inheritdoc */\n public queryAll<T extends O3rElement>(_selector: string, _returnType: O3rElementConstructor<T>, _groupType?: undefined, timeout?: number): Promise<T[]>;\n /** @inheritdoc */\n public queryAll<T extends O3rElement, K extends GroupProfile<T>>(_selector: string, _returnType: O3rElementConstructor<T>, _groupType: O3rGroupConstructor<K, T>, timeout?: number): Promise<K>;\n /** @inheritdoc */\n public queryAll<T extends O3rElement, K extends GroupProfile<T>>(\n _selector: string,\n _returnType: O3rElementConstructor<T> | undefined,\n _groupType: O3rGroupConstructor<K, T> | undefined,\n _timeout?: number\n ): Promise<(T | O3rElement)[] | K> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getElement(): V | undefined {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getSubComponents(): Promise<{[componentName: string]: ComponentFixtureProfile[]}> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritDoc */\n public queryNotPresent(_selector: string, _timeout?: number): Promise<boolean> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * @inheritDoc\n */\n public queryNth(_selector: string, _index: number, _returnType?: undefined): Promise<ElementProfile | undefined>;\n public queryNth<T extends ElementProfile>(_selector: string, _index: number, _returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n public queryNth<T extends ElementProfile>(_selector: string, _index: number, _returnType: O3rElementConstructor<T> | undefined): Promise<T | ElementProfile | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"component-fixture.js","sourceRoot":"","sources":["../../src/core/component-fixture.ts"],"names":[],"mappings":";;;AAAA,yCAEyB;AA+FzB;;;GAGG;AACH;IACE,6BAAY,QAAY;QACtB,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACO,qDAAuB,GAAjC,UAAwD,QAAuB,EAAE,QAAiB;QAChG,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;OAKG;IACO,8CAAgB,GAA1B,UAAiD,QAAgC,EAAE,QAAiB;QAClG,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IA6BS,8CAAgB,GAA1B,UACE,SAAiB,EACjB,mBAAyD,EACzD,QAIM;QAJN,yBAAA,EAAA,aAIM;QAEN,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;OAQG;IACO,qCAAO,GAAjB,UAAwC,SAAiB,EAAE,QAKrD;QALqD,yBAAA,EAAA,aAKrD;QACJ,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;OAQG;IACO,uCAAS,GAAnB,UAA0C,SAAiB,EAAE,QAKvD;QALuD,yBAAA,EAAA,aAKvD;QACJ,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;OAQG;IACO,mCAAK,GAAf,UAAsC,SAAiB,EAAE,QAKnD;QALmD,yBAAA,EAAA,aAKnD;QACJ,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAMD,kBAAkB;IACX,mCAAK,GAAZ,UAAmC,SAAiB,EAAE,WAAiD;QACrG,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAQD,kBAAkB;IACX,sCAAQ,GAAf,UACE,SAAiB,EACjB,WAAiD,EACjD,UAAiD,EACjD,QAAiB;QAEjB,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,wCAAU,GAAjB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,8CAAgB,GAAvB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,6CAAe,GAAtB,UAAuB,SAAiB,EAAE,QAAiB;QACzD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAOM,sCAAQ,GAAf,UAA0C,SAAiB,EAAE,MAAc,EAAE,WAAiD;QAC5H,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,0BAAC;AAAD,CAAC,AAtKD,IAsKC;AAtKY,kDAAmB","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../errors/index';\nimport {\n ElementProfile,\n O3rElement,\n O3rElementConstructor,\n} from './element';\nimport {\n GroupProfile,\n O3rGroupConstructor,\n} from './group';\n\n/**\n * Interface to describe the Component fixture that is used as an abstraction layer to access the DOM of a component.\n * It comes with two implementations that are chosen a build time whether you will use it in a karma or protractor\n * runtime. This way the same fixture is usable for both component and e2e tests.\n */\nexport interface ComponentFixtureProfile<V extends ElementProfile = ElementProfile> {\n /**\n * Return the root element of the component fixture.\n */\n getElement(): V | undefined;\n\n /**\n * Queries an element using the CSS selector passed as argument.\n * If the fixture has a context (was created with a TestBed or Protractor element) the query will be applied\n * to this element's tree only.\n * @param selector CSS selector for the desired element\n * @param returnType Constructor of the element expected\n */\n query(selector: string, returnType?: undefined): Promise<ElementProfile | undefined>;\n query<T extends ElementProfile>(selector: string, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n query<T extends ElementProfile>(selector: string, returnType: O3rElementConstructor<T> | undefined): Promise<T | ElementProfile | undefined>;\n\n /**\n * Queries the nth element of a list using the CSS selector passed as argument.\n * If the fixture has a context (was created with a TestBed or Protractor element) the query will be applied\n * to this element's tree only.\n * @param selector CSS selector for the desired element\n * @param index Index of the element to retrieve\n * @param returnType Constructor of the element expected\n */\n queryNth(selector: string, index: number, returnType?: undefined): Promise<ElementProfile | undefined>;\n queryNth<T extends ElementProfile>(selector: string, index: number, returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n queryNth<T extends ElementProfile>(selector: string, index: number, returnType: O3rElementConstructor<T> | undefined): Promise<T | ElementProfile | undefined>;\n\n /**\n * Queries a list of elements using the CSS selector passed as argument.\n * If the fixture has a context (was created with a TestBed or Protractor element) the query will be applied\n * to this element's tree only.\n * @param selector CSS selector for the desired elements\n * @param returnType Constructor of the element expected\n * @param groupType\n * @param timeout\n */\n queryAll(selector: string, returnType?: undefined, groupType?: undefined, timeout?: number): Promise<O3rElement[]>;\n queryAll<T extends ElementProfile>(selector: string, returnType: O3rElementConstructor<T>, groupType?: undefined, timeout?: number): Promise<T[]>;\n queryAll<T extends ElementProfile, K extends GroupProfile<T>>(selector: string, returnType: O3rElementConstructor<T>, groupType: O3rGroupConstructor<K, T>, timeout?: number): Promise<K>;\n queryAll<T extends ElementProfile, K extends GroupProfile<T>>(\n selector: string,\n returnType: O3rElementConstructor<T> | undefined,\n groupType: O3rGroupConstructor<K, T> | undefined,\n timeout?: number\n ): Promise<(T | O3rElement)[] | K>;\n\n /**\n * Returns the component fixtures corresponding to the sub-components.\n */\n getSubComponents(): Promise<{ [componentName: string]: ComponentFixtureProfile[] }>;\n\n /**\n * Returns true if the provided selector has no match in the document.\n * A custom timeout value can be passed for asynchronous implementations that support it.\n * @param selector\n * @param timeout\n */\n queryNotPresent(selector: string, timeout?: number): Promise<boolean>;\n}\n\n/**\n * Interface to tell typescript that the element which implements\n * it can be used as a prototype\n */\nexport type Constructable<T extends ComponentFixtureProfile, U extends FixtureWithCustom = FixtureWithCustom> = new (elem?: ElementProfile, customFixtures?: U) => T;\n\n/**\n * This is the type that has to be extended by each component fixture context\n * It contains the custom fixture type for a component presenter and its subcomponents fixtures contexts\n * key: presenter name\n * fixture: custom presenter type\n * customSubFixtures: custom fixtures for the presenter subcomponents\n */\nexport interface FixtureWithCustom {\n [fixtureKey: string]: { fixture?: Constructable<ComponentFixtureProfile, FixtureWithCustom>; customSubFixtures?: FixtureWithCustom } | undefined;\n}\n\n/**\n * Mock for Component fixture class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rComponentFixture<V extends O3rElement = O3rElement> implements ComponentFixtureProfile<V> {\n constructor(_element?: V) {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param _element ElementProfile to test\n * @param _timeout specific timeout that will throw when reach\n */\n protected throwOnUndefinedElement<T extends O3rElement>(_element: T | undefined, _timeout?: number): Promise<T> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * Throws an exception if the element is undefined.\n * Otherwise returns the element.\n * @param _element ElementProfile to test\n * @param _timeout specific timeout that will throw when reach\n */\n protected throwOnUndefined<T extends O3rElement>(_element: Promise<T | undefined>, _timeout?: number): Promise<T | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 queryWithOptions(\n _selector: string,\n _elementConstructor: undefined,\n _options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n }\n ): Promise<O3rElement | undefined>;\n protected queryWithOptions<T extends O3rElement>(\n _selector: string,\n _elementConstructor: O3rElementConstructor<T>,\n _options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n }\n ): Promise<T | undefined>;\n protected queryWithOptions<T extends O3rElement>(\n _selector: string,\n _elementConstructor: O3rElementConstructor<T> | undefined,\n _options: {\n index?: number;\n shouldThrowIfNotPresent?: boolean;\n timeout?: number;\n } = {}\n ): Promise<T | O3rElement | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 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 throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 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 throw new TranspilationPurposeOnlyError('Should target a proper implementation');\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 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 throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public query(_selector: string, _returnType?: undefined, timeout?: number): Promise<O3rElement | undefined>;\n /** @inheritdoc */\n public query<T extends O3rElement>(_selector: string, _returnType: O3rElementConstructor<T>, timeout?: number): Promise<T | undefined>;\n /** @inheritdoc */\n public query<T extends O3rElement>(_selector: string, _returnType: O3rElementConstructor<T> | undefined): Promise<T | O3rElement | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public queryAll(_selector: string, _returnType?: undefined, _groupType?: undefined, timeout?: number): Promise<O3rElement[]>;\n /** @inheritdoc */\n public queryAll<T extends O3rElement>(_selector: string, _returnType: O3rElementConstructor<T>, _groupType?: undefined, timeout?: number): Promise<T[]>;\n /** @inheritdoc */\n public queryAll<T extends O3rElement, K extends GroupProfile<T>>(_selector: string, _returnType: O3rElementConstructor<T>, _groupType: O3rGroupConstructor<K, T>, timeout?: number): Promise<K>;\n /** @inheritdoc */\n public queryAll<T extends O3rElement, K extends GroupProfile<T>>(\n _selector: string,\n _returnType: O3rElementConstructor<T> | undefined,\n _groupType: O3rGroupConstructor<K, T> | undefined,\n _timeout?: number\n ): Promise<(T | O3rElement)[] | K> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getElement(): V | undefined {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getSubComponents(): Promise<{ [componentName: string]: ComponentFixtureProfile[] }> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritDoc */\n public queryNotPresent(_selector: string, _timeout?: number): Promise<boolean> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * @inheritDoc\n */\n public queryNth(_selector: string, _index: number, _returnType?: undefined): Promise<ElementProfile | undefined>;\n public queryNth<T extends ElementProfile>(_selector: string, _index: number, _returnType: O3rElementConstructor<T>): Promise<T | undefined>;\n public queryNth<T extends ElementProfile>(_selector: string, _index: number, _returnType: O3rElementConstructor<T> | undefined): Promise<T | ElementProfile | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
package/core/element.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/core/element.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/core/element.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEjE;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEvC;;;OAGG;IACH,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAE5C;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAE5C;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvC;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,IAAI,KAAK,aAAa,EAAE,GAAG,KAAK,CAAC,CAAC;AAE5F;;;GAGG;AACH,qBAAa,UAAW,YAAW,cAAc;gBACnC,cAAc,EAAE,GAAG;IAExB,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIlD,kBAAkB;IACX,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI7C,kBAAkB;IACX,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIlD,kBAAkB;IACX,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,kBAAkB;IACX,YAAY,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIxE,kBAAkB;IACX,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC,kBAAkB;IACX,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI9C,kBAAkB;IACX,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,kBAAkB;IACX,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC,kBAAkB;IACX,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAGrC"}
|
package/core/element.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../src/core/element.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../src/core/element.ts"],"names":[],"mappings":";;;AAAA,yCAEyB;AAiEzB;;;GAGG;AACH;IACE,oBAAY,cAAmB;IAAG,CAAC;IAE5B,iCAAY,GAAnB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,4BAAO,GAAd;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,iCAAY,GAAnB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,0BAAK,GAAZ;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,iCAAY,GAAnB,UAAoB,cAAsB;QACxC,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,8BAAS,GAAhB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,6BAAQ,GAAf;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,6BAAQ,GAAf,UAAgB,MAAc;QAC5B,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,+BAAU,GAAjB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,8BAAS,GAAhB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,iBAAC;AAAD,CAAC,AAnDD,IAmDC;AAnDY,gCAAU","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../errors/index';\n\n/**\n * Interface to describe the ElementProfile that are queried inside a fixture.\n * As for ComponentFixture, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface ElementProfile {\n /**\n * Click on the element. Simple click with left button.\n */\n click(): Promise<void>;\n\n /**\n * Returns a promise that resolves with the value of the attribute given in parameter.\n */\n getAttribute(attributeName: string): Promise<string | undefined>;\n\n /**\n * Returns a promise that resolves with the text of the element or undefined.\n */\n getText(): Promise<string | undefined>;\n\n /**\n * Get the text of an element, remove the multiple whitespaces and linebreaks\n * Returns a promise that resolves with the formatted text or undefined.\n */\n getPlainText(): Promise<string | undefined>;\n\n /**\n * Returns a promise that resolves with the inner html of the element or undefined.\n */\n getInnerHTML(): Promise<string | undefined>;\n\n /**\n * Put the cusrsor on the element.\n */\n mouseOver(): Promise<void>;\n\n /**\n * Returns a promise that resolves with the current value of an input or undefined.\n */\n getValue(): Promise<string | undefined>;\n\n /**\n * Set the value in an input.\n */\n setValue(input: string): Promise<void>;\n\n /**\n * Clears the value in the input\n */\n clearValue(): Promise<void>;\n\n /**\n * Check if an element is visible ( display !none and visibility !hidden)\n */\n isVisible(): Promise<boolean>;\n}\n\n/**\n * Constructor of a O3rElement\n */\nexport type O3rElementConstructor<T extends ElementProfile> = new (sourceElement: any) => T;\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rElement implements ElementProfile {\n constructor(_sourceElement: any) {}\n\n public getInnerHTML(): Promise<string | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getText(): Promise<string | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getPlainText(): Promise<string | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public click(): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getAttribute(_attributeName: string): Promise<string | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public mouseOver(): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public getValue(): Promise<string | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public setValue(_input: string): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public clearValue(): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritdoc */\n public isVisible(): Promise<boolean> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/checkbox-element.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/checkbox-element.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D;;;;OAIG;IACH,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAW,YAAW,sBAAsB;gBACtE,cAAc,EAAE,GAAG;IAI/B,kBAAkB;IACX,KAAK,CAAC,MAAM,UAAO,EAAE,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzE,kBAAkB;IACX,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,kBAAkB;IACX,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAGrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-element.js","sourceRoot":"","sources":["../../../src/core/elements/checkbox-element.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"checkbox-element.js","sourceRoot":"","sources":["../../../src/core/elements/checkbox-element.ts"],"names":[],"mappings":";;;;AAAA,4CAE4B;AAC5B,sCAGoB;AA0BpB;;;GAGG;AACH;IAAwC,8CAAU;IAChD,4BAAY,cAAmB;QAC7B,OAAA,MAAK,YAAC,cAAc,CAAC,SAAC;IACxB,CAAC;IAED,kBAAkB;IACX,kCAAK,GAAZ,UAAa,MAAa,EAAE,gBAA6B;QAA5C,uBAAA,EAAA,aAAa;QACxB,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,oCAAO,GAAd;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,sCAAS,GAAhB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,yBAAC;AAAD,CAAC,AAnBD,CAAwC,oBAAU,GAmBjD;AAnBY,gDAAkB","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../../errors/index';\nimport {\n ElementProfile,\n O3rElement,\n} from '../element';\n\n/**\n * Interface to describe the Checkbox elements that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface CheckboxElementProfile extends ElementProfile {\n /**\n * Check the checkbox element\n * @param value If specified, determine the value of the checkbox button\n * @param associatedLabel If specified, specify the label associated to the checkbox\n */\n check(value?: boolean, associatedLabel?: O3rElement): Promise<void>;\n\n /**\n * Uncheck the checkbox element\n */\n uncheck(): Promise<void>;\n\n /**\n * Return true if the checkbox button is checked\n */\n isChecked(): Promise<boolean>;\n}\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rCheckboxElement extends O3rElement implements CheckboxElementProfile {\n constructor(_sourceElement: any) {\n super(_sourceElement);\n }\n\n /** @inheritDoc */\n public check(_value = true, _associatedLabel?: O3rElement): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritDoc */\n public uncheck(): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritDoc */\n public isChecked(): Promise<boolean> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/radio-element.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/radio-element.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD;;;OAGG;IACH,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,UAAW,YAAW,mBAAmB;gBAChE,cAAc,EAAE,GAAG;IAI/B,kBAAkB;IACX,KAAK,CAAC,MAAM,UAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1C,kBAAkB;IACX,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,kBAAkB;IACX,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAGrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-element.js","sourceRoot":"","sources":["../../../src/core/elements/radio-element.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"radio-element.js","sourceRoot":"","sources":["../../../src/core/elements/radio-element.ts"],"names":[],"mappings":";;;;AAAA,4CAE4B;AAC5B,sCAGoB;AAyBpB;;;GAGG;AACH;IAAqC,2CAAU;IAC7C,yBAAY,cAAmB;QAC7B,OAAA,MAAK,YAAC,cAAc,CAAC,SAAC;IACxB,CAAC;IAED,kBAAkB;IACX,+BAAK,GAAZ,UAAa,MAAa;QAAb,uBAAA,EAAA,aAAa;QACxB,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,iCAAO,GAAd;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;IACX,mCAAS,GAAhB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,sBAAC;AAAD,CAAC,AAnBD,CAAqC,oBAAU,GAmB9C;AAnBY,0CAAe","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../../errors/index';\nimport {\n ElementProfile,\n O3rElement,\n} from '../element';\n\n/**\n * Interface to describe the Radio elements that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface RadioElementProfile extends ElementProfile {\n /**\n * Check the radio element\n * @param value If specified, determine the value of the radio button\n */\n check(value?: boolean): Promise<void>;\n\n /**\n * Uncheck the radio element\n */\n uncheck(): Promise<void>;\n\n /**\n * Return true if the radio button is checked\n */\n isChecked(): Promise<boolean>;\n}\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rRadioElement extends O3rElement implements RadioElementProfile {\n constructor(_sourceElement: any) {\n super(_sourceElement);\n }\n\n /** @inheritDoc */\n public check(_value = true): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritDoc */\n public uncheck(): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /** @inheritDoc */\n public isChecked(): Promise<boolean> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/select-element.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/select-element.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/D;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,oBAAoB;gBAClE,cAAc,EAAE,GAAG;IAI/B;;;;OAIG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE;;;;OAIG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-element.js","sourceRoot":"","sources":["../../../src/core/elements/select-element.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"select-element.js","sourceRoot":"","sources":["../../../src/core/elements/select-element.ts"],"names":[],"mappings":";;;;AAAA,4CAE4B;AAC5B,sCAGoB;AAmBpB;;;GAGG;AACH;IAAsC,4CAAU;IAC9C,0BAAY,cAAmB;QAC7B,OAAA,MAAK,YAAC,cAAc,CAAC,SAAC;IACxB,CAAC;IAED;;;;OAIG;IACI,wCAAa,GAApB,UAAqB,MAAc,EAAE,QAAiB;QACpD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IAED;;;;OAIG;IACI,wCAAa,GAApB,UAAqB,MAAc,EAAE,QAAiB;QACpD,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,uBAAC;AAAD,CAAC,AAtBD,CAAsC,oBAAU,GAsB/C;AAtBY,4CAAgB","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../../errors/index';\nimport {\n ElementProfile,\n O3rElement,\n} from '../element';\n\n/**\n * Interface to describe the Select elements that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface SelectElementProfile extends ElementProfile {\n /**\n * Select an element in a dropdown by index.\n */\n selectByIndex(index: number, _timeout?: number): Promise<void>;\n\n /**\n * Select an element in a dropdown by value.\n */\n selectByValue(value: string, _timeout?: number): Promise<void>;\n}\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rSelectElement extends O3rElement implements SelectElementProfile {\n constructor(_sourceElement: any) {\n super(_sourceElement);\n }\n\n /**\n * Select an element in a dropdown by index.\n * @param _index\n * @param _timeout\n */\n public selectByIndex(_index: number, _timeout?: number): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n /**\n * Select an element in a dropdown by value.\n * @param _value\n * @param _timeout\n */\n public selectByValue(_value: string, _timeout?: number): Promise<void> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/slider-element.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"slider-element.d.ts","sourceRoot":"","sources":["../../../src/core/elements/slider-element.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;CAAG;AAE/D;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,oBAAoB;gBAClE,aAAa,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;CAGjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider-element.js","sourceRoot":"","sources":["../../../src/core/elements/slider-element.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"slider-element.js","sourceRoot":"","sources":["../../../src/core/elements/slider-element.ts"],"names":[],"mappings":";;;;AAAA,sCAGoB;AASpB;;;GAGG;AACH;IAAsC,4CAAU;IAC9C,0BAAY,aAAkB,EAAE,cAAuB,EAAE,cAAuB;QAC9E,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IACH,uBAAC;AAAD,CAAC,AAJD,CAAsC,oBAAU,GAI/C;AAJY,4CAAgB","sourcesContent":["import {\n ElementProfile,\n O3rElement,\n} from '../element';\n\n/**\n * Interface to describe the Slider elements that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface SliderElementProfile extends ElementProfile {}\n\n/**\n * Mock for ElementProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rSliderElement extends O3rElement implements SliderElementProfile {\n constructor(sourceElement: any, _trackSelector?: string, _thumbSelector?: string) {\n super(sourceElement);\n }\n}\n"]}
|
package/core/group.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../src/core/group.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../src/core/group.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,UAAU,EACX,MAAM,WAAW,CAAC;AAEnB;;GAEG;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;;;;GAIG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,cAAc;IACpD,oBAAoB;IACpB,KAAK,EAAE,CAAC,EAAE,CAAC;IAEX,kCAAkC;IAClC,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,UAAU,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;IACpE,kBAAkB;IAClB,IAAW,KAAK,IAAI,CAAC,EAAE,CAEtB;gBAEW,cAAc,EAAE,CAAC,EAAE;IAE/B,kBAAkB;IACX,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC;CAGxC"}
|
package/core/group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/core/group.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/core/group.ts"],"names":[],"mappings":";;;AAAA,yCAEyB;AAwBzB;;;GAGG;AACH;IAME,kBAAY,cAAmB;IAAG,CAAC;IAJnC,sBAAW,2BAAK;QADhB,kBAAkB;aAClB;YACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;QACnF,CAAC;;;OAAA;IAID,kBAAkB;IACX,+BAAY,GAAnB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,eAAC;AAAD,CAAC,AAZD,IAYC;AAZY,4BAAQ","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../errors/index';\nimport {\n ElementProfile,\n O3rElement,\n} from './element';\n\n/**\n * Constructor of a O3rGroup\n */\nexport type O3rGroupConstructor<T extends GroupProfile<V>, V extends ElementProfile> = new (sourceElement: V[]) => T;\n\n/**\n * Interface to describe the GroupProfile that are queried inside a fixture.\n * As for ComponentFixture, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface GroupProfile<T extends ElementProfile> {\n /** List of items */\n items: T[];\n\n /** Check if the group is valid */\n isValidGroup(): Promise<boolean>;\n}\n\n/**\n * Mock for GroupProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rGroup<T extends O3rElement> implements GroupProfile<T> {\n /** @inheritDoc */\n public get items(): T[] {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n\n constructor(_sourceElement: T[]) {}\n\n /** @inheritDoc */\n public isValidGroup(): Promise<boolean> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/core/groups/radio-group.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/core/groups/radio-group.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,YAAY,EACZ,QAAQ,EACT,MAAM,UAAU,CAAC;AAElB;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,YAAY,CAAC,mBAAmB,CAAC;IAC1E,4BAA4B;IAC5B,eAAe,IAAI,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;CAC7D;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,QAAQ,CAAC,eAAe,CAAE,YAAW,iBAAiB;gBAC3E,aAAa,EAAE,eAAe,EAAE;IAIrC,eAAe,IAAI,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;CAG/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/core/groups/radio-group.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/core/groups/radio-group.ts"],"names":[],"mappings":";;;;AAAA,4CAE4B;AAK5B,kCAGkB;AAYlB;;;GAGG;AACH;IAAmC,yCAAyB;IAC1D,uBAAY,aAAgC;QAC1C,OAAA,MAAK,YAAC,aAAa,CAAC,SAAC;IACvB,CAAC;IAEM,uCAAe,GAAtB;QACE,MAAM,IAAI,qCAA6B,CAAC,uCAAuC,CAAC,CAAC;IACnF,CAAC;IACH,oBAAC;AAAD,CAAC,AARD,CAAmC,gBAAQ,GAQ1C;AARY,sCAAa","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../../errors/index';\nimport {\n O3rRadioElement,\n RadioElementProfile,\n} from '../elements/radio-element';\nimport {\n GroupProfile,\n O3rGroup,\n} from '../group';\n\n/**\n * Interface to describe the Radio Group that are used inside a fixture.\n * As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right\n * implementation at runtime.\n */\nexport interface RadioGroupProfile extends GroupProfile<RadioElementProfile> {\n /** Get of selected items */\n getSelectedItem(): Promise<RadioElementProfile | undefined>;\n}\n\n/**\n * Mock for RadioGroupProfile class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rRadioGroup extends O3rGroup<O3rRadioElement> implements RadioGroupProfile {\n constructor(sourceElement: O3rRadioElement[]) {\n super(sourceElement);\n }\n\n public getSelectedItem(): Promise<O3rRadioElement | undefined> {\n throw new TranspilationPurposeOnlyError('Should target a proper implementation');\n }\n}\n"]}
|
package/core/helpers.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const isPromise: <T>(item: T | Promise<T>) => item is Promise<T>;
|
|
|
7
7
|
* Error raised when promise timeout
|
|
8
8
|
*/
|
|
9
9
|
export declare class TimeoutError extends Error {
|
|
10
|
-
constructor(message?: string
|
|
10
|
+
constructor(message?: string);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Apply timeout to a given promise
|
package/core/helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/core/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/core/helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,KAAG,IAAI,IAAI,OAAO,CAAC,CAAC,CAA8D,CAAC;AAEpI;;GAEG;AACH,qBAAa,YAAa,SAAQ,KAAK;gBACzB,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAU,CAAC,WAAW,OAAO,CAAC,CAAC,CAAC,YAAY,MAAM,KAAG,OAAO,CAAC,CAAC,CAKrF,CAAC"}
|
package/core/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/core/helpers.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/core/helpers.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACI,IAAM,SAAS,GAAG,UAAI,IAAoB,IAAyB,OAAA,CAAC,CAAC,IAAI,IAAI,OAAQ,IAAmB,CAAC,IAAI,KAAK,UAAU,EAAzD,CAAyD,CAAC;AAAvH,QAAA,SAAS,aAA8G;AAEpI;;GAEG;AACH;IAAkC,wCAAK;IACrC,sBAAY,OAAgB;QAC1B,OAAA,MAAK,YAAC,OAAO,IAAI,wBAAwB,CAAC,SAAC;IAC7C,CAAC;IACH,mBAAC;AAAD,CAAC,AAJD,CAAkC,KAAK,GAItC;AAJY,oCAAY;AAMzB;;;;GAIG;AACI,IAAM,WAAW,GAAG,UAAU,OAAmB,EAAE,OAAgB;;QACxE,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,sBAAO,OAAO,EAAC;QACjB,CAAC;QACD,sBAAO,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,IAAI,OAAO,CAAI,UAAC,CAAC,EAAE,MAAM,IAAK,OAAA,UAAU,CAAC,cAAM,OAAA,MAAM,CAAC,IAAI,YAAY,EAAE,CAAC,EAA1B,CAA0B,EAAE,OAAO,CAAC,EAArD,CAAqD,CAAC,CAAC,CAAC,EAAC;;KACtH,CAAC;AALW,QAAA,WAAW,eAKtB","sourcesContent":["/**\n * Determine if the given item is a promise\n * @param item Item to check\n */\nexport const isPromise = <T>(item: T | Promise<T>): item is Promise<T> => !!item && typeof (item as Promise<T>).then === 'function';\n\n/**\n * Error raised when promise timeout\n */\nexport class TimeoutError extends Error {\n constructor(message?: string) {\n super(message || 'Timeout of the promise');\n }\n}\n\n/**\n * Apply timeout to a given promise\n * @param promise Promise to timeout\n * @param timeout timeout of the given promise (in ms)\n */\nexport const withTimeout = async <T>(promise: Promise<T>, timeout?: number): Promise<T> => {\n if (!timeout) {\n return promise;\n }\n return Promise.race([promise, new Promise<T>((_, reject) => setTimeout(() => reject(new TimeoutError()), timeout))]);\n};\n"]}
|
package/core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './angular-materials';
|
|
2
2
|
export * from './component-fixture';
|
|
3
|
-
export * from './elements';
|
|
4
3
|
export * from './element';
|
|
5
|
-
export * from './
|
|
4
|
+
export * from './elements';
|
|
6
5
|
export * from './group';
|
|
6
|
+
export * from './groups';
|
|
7
7
|
export * from './page-fixture';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/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"}
|
package/core/index.js
CHANGED
|
@@ -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("./elements"), exports);
|
|
7
6
|
tslib_1.__exportStar(require("./element"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
7
|
+
tslib_1.__exportStar(require("./elements"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./group"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./groups"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./page-fixture"), exports);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,8DAAoC;AACpC,qDAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/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';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-fixture.d.ts","sourceRoot":"","sources":["../../src/core/page-fixture.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-fixture.d.ts","sourceRoot":"","sources":["../../src/core/page-fixture.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,UAAU,EACX,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,cAAc,CAAE,SAAQ,uBAAuB,CAAC,CAAC,CAAC;IAC9F;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAC5H;;;;OAIG;gBACS,YAAY,CAAC,EAAE,CAAC;IAIrB,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGnC"}
|
package/core/page-fixture.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-fixture.js","sourceRoot":"","sources":["../../src/core/page-fixture.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"page-fixture.js","sourceRoot":"","sources":["../../src/core/page-fixture.ts"],"names":[],"mappings":";;;;AAAA,yCAEyB;AACzB,yDAG6B;AAgB7B;;;GAGG;AACH;IAAuE,0CAAsB;IAC3F;;;;OAIG;IACH,wBAAY,YAAgB;QAC1B,OAAA,MAAK,WAAE,SAAC;IACV,CAAC;IAEM,iCAAQ,GAAf;QACE,MAAM,IAAI,qCAA6B,CAAC,yCAAyC,CAAC,CAAC;IACrF,CAAC;IACH,qBAAC;AAAD,CAAC,AAbD,CAAuE,uCAAmB,GAazF;AAbY,wCAAc","sourcesContent":["import {\n TranspilationPurposeOnlyError,\n} from '../errors/index';\nimport {\n ComponentFixtureProfile,\n O3rComponentFixture,\n} from './component-fixture';\nimport {\n ElementProfile,\n O3rElement,\n} from './element';\n\n/**\n * Interface to describe a page fixture.\n */\nexport interface PageFixtureProfile<V extends ElementProfile> extends ComponentFixtureProfile<V> {\n /**\n * Returns the title of the page\n */\n getTitle(): Promise<string>;\n}\n\n/**\n * Mock for page fixture class.\n * This class is used for fixture compilation purpose.\n */\nexport class O3rPageFixture<V extends O3rElement = O3rElement> extends O3rComponentFixture<V> implements PageFixtureProfile<V> {\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 super();\n }\n\n public getTitle(): Promise<string> {\n throw new TranspilationPurposeOnlyError('Should target Playwright implementation');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-material.d.ts","sourceRoot":"","sources":["../../../../src/core/playwright/angular-materials/autocomplete-material.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"autocomplete-material.d.ts","sourceRoot":"","sources":["../../../../src/core/playwright/angular-materials/autocomplete-material.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,UAAU,EACV,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,UAAW,YAAW,sBAAsB;gBACnE,aAAa,EAAE,uBAAuB,GAAG,UAAU;IAI/D,kBAAkB;IACL,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,SAAO;CAsBzD"}
|
|
@@ -55,7 +55,7 @@ var MatAutocomplete = /** @class */ (function (_super) {
|
|
|
55
55
|
case 10:
|
|
56
56
|
_d.sent();
|
|
57
57
|
return [2 /*return*/, this.sourceElement.element.press('Tab')];
|
|
58
|
-
case 11: return [2 /*return*/, Promise.reject('Element with selector .mat-option, mat-option not found.')];
|
|
58
|
+
case 11: return [2 /*return*/, Promise.reject(new Error('Element with selector .mat-option, mat-option not found.'))];
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
});
|