@redhat-cloud-services/frontend-components-testing 0.0.1
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/OuiaSelectors/OuiaSelectors.d.ts +11 -0
- package/OuiaSelectors/OuiaSelectors.js +59 -0
- package/OuiaSelectors/OuiaSelectors.js.map +1 -0
- package/OuiaSelectors/index.d.ts +1 -0
- package/OuiaSelectors/index.js +14 -0
- package/OuiaSelectors/index.js.map +1 -0
- package/OuiaSelectors/package.json +1 -0
- package/README.md +22 -0
- package/esm/OuiaSelectors/OuiaSelectors.js +55 -0
- package/esm/OuiaSelectors/OuiaSelectors.js.map +1 -0
- package/esm/OuiaSelectors/index.js +2 -0
- package/esm/OuiaSelectors/index.js.map +1 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +14 -0
- package/index.js.map +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare type OuiaFunction<R> = (componentType: string, componentId?: string) => R;
|
|
2
|
+
declare type OuiaSelectableElement = HTMLElement & OuiaSelectors;
|
|
3
|
+
interface OuiaSelectors {
|
|
4
|
+
getByOuia: OuiaFunction<OuiaSelectableElement>;
|
|
5
|
+
getAllByOuia: OuiaFunction<Array<OuiaSelectableElement>>;
|
|
6
|
+
queryByOuia: OuiaFunction<OuiaSelectableElement | null>;
|
|
7
|
+
queryAllByOuia: OuiaFunction<Array<OuiaSelectableElement>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const ouiaSelectors: Readonly<OuiaSelectors>;
|
|
10
|
+
export declare const ouiaSelectorsFor: (base: HTMLElement) => Readonly<OuiaSelectableElement>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ouiaSelectorsFor = exports.ouiaSelectors = void 0;
|
|
4
|
+
var _ouiaSearchFunction = function (base, componentType, componentId, options) {
|
|
5
|
+
var selector = "[data-ouia-component-type=\"".concat(componentType, "\"]");
|
|
6
|
+
if (componentId) {
|
|
7
|
+
selector += "[data-ouia-component-id=\"".concat(componentId, "\"]");
|
|
8
|
+
}
|
|
9
|
+
var result = base.querySelectorAll(selector);
|
|
10
|
+
if (options.throwIfMultiple && result.length > 1) {
|
|
11
|
+
throw new Error("There are more than one element with the type: ".concat(componentType, " and the id ").concat(componentId));
|
|
12
|
+
}
|
|
13
|
+
else if (options.throwIfNone && result.length === 0) {
|
|
14
|
+
throw new Error("There is not any element with the type: ".concat(componentType, " and the id ").concat(componentId));
|
|
15
|
+
}
|
|
16
|
+
return Array.from(result).map(function (r) { return (0, exports.ouiaSelectorsFor)(r); });
|
|
17
|
+
};
|
|
18
|
+
var _queryAllByOuia = function (base, componentType, componentId) {
|
|
19
|
+
return _ouiaSearchFunction(base, componentType, componentId, {
|
|
20
|
+
throwIfNone: false,
|
|
21
|
+
throwIfMultiple: false,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var _queryByOuia = function (base, componentType, componentId) {
|
|
25
|
+
var elements = _ouiaSearchFunction(base, componentType, componentId, {
|
|
26
|
+
throwIfNone: false,
|
|
27
|
+
throwIfMultiple: true,
|
|
28
|
+
});
|
|
29
|
+
return elements.length > 0 ? elements[0] : null;
|
|
30
|
+
};
|
|
31
|
+
var _getAllByOuia = function (base, componentType, componentId) {
|
|
32
|
+
return _ouiaSearchFunction(base, componentType, componentId, {
|
|
33
|
+
throwIfNone: true,
|
|
34
|
+
throwIfMultiple: false,
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var _getByOuia = function (base, componentType, componentId) {
|
|
38
|
+
var elements = _ouiaSearchFunction(base, componentType, componentId, {
|
|
39
|
+
throwIfNone: true,
|
|
40
|
+
throwIfMultiple: true,
|
|
41
|
+
});
|
|
42
|
+
return elements[0];
|
|
43
|
+
};
|
|
44
|
+
exports.ouiaSelectors = {
|
|
45
|
+
getByOuia: function (componentType, componentId) { return _getByOuia(document.body, componentType, componentId); },
|
|
46
|
+
getAllByOuia: function (componentType, componentId) { return _getAllByOuia(document.body, componentType, componentId); },
|
|
47
|
+
queryByOuia: function (componentType, componentId) { return _queryByOuia(document.body, componentType, componentId); },
|
|
48
|
+
queryAllByOuia: function (componentType, componentId) { return _queryAllByOuia(document.body, componentType, componentId); },
|
|
49
|
+
};
|
|
50
|
+
var ouiaSelectorsFor = function (base) {
|
|
51
|
+
return Object.assign(base, {
|
|
52
|
+
getByOuia: function (componentType, componentId) { return _getByOuia(base, componentType, componentId); },
|
|
53
|
+
getAllByOuia: function (componentType, componentId) { return _getAllByOuia(base, componentType, componentId); },
|
|
54
|
+
queryByOuia: function (componentType, componentId) { return _queryByOuia(base, componentType, componentId); },
|
|
55
|
+
queryAllByOuia: function (componentType, componentId) { return _queryAllByOuia(base, componentType, componentId); },
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
exports.ouiaSelectorsFor = ouiaSelectorsFor;
|
|
59
|
+
//# sourceMappingURL=OuiaSelectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OuiaSelectors.js","sourceRoot":"","sources":["../src/OuiaSelectors/OuiaSelectors.ts"],"names":[],"mappings":";;;AAgBA,IAAM,mBAAmB,GAAG,UAC1B,IAAiB,EACjB,aAAqB,EACrB,WAA+B,EAC/B,OAA0B;IAE1B,IAAI,QAAQ,GAAG,sCAA8B,aAAa,QAAI,CAAC;IAC/D,IAAI,WAAW,EAAE;QACf,QAAQ,IAAI,oCAA4B,WAAW,QAAI,CAAC;KACzD;IAED,IAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAc,QAAQ,CAAC,CAAC;IAE5D,IAAI,OAAO,CAAC,eAAe,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QAChD,MAAM,IAAI,KAAK,CAAC,yDAAkD,aAAa,yBAAe,WAAW,CAAE,CAAC,CAAC;K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WAAW,CAAC,EAAjD,CAAiD;KACnH,CAAC,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OuiaSelectors';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./OuiaSelectors"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/OuiaSelectors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"index.js","module":"../esm/OuiaSelectors/index.js","typings":"index.d.ts"}
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# RedHat Cloud Services frontend components - testing
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/%40redhat-cloud-services%2Ffrontend-components-testing)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
This package exports utilities to use in tests.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
With NPM
|
|
10
|
+
```bash
|
|
11
|
+
npm i -S @redhat-cloud-services/frontend-components-testing
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
With yarn
|
|
15
|
+
```bash
|
|
16
|
+
yarn add @redhat-cloud-services/frontend-components-testing
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Documentation Links
|
|
20
|
+
|
|
21
|
+
* Usage
|
|
22
|
+
* [Testing](doc/testing.md)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var _ouiaSearchFunction = function (base, componentType, componentId, options) {
|
|
2
|
+
var selector = "[data-ouia-component-type=\"".concat(componentType, "\"]");
|
|
3
|
+
if (componentId) {
|
|
4
|
+
selector += "[data-ouia-component-id=\"".concat(componentId, "\"]");
|
|
5
|
+
}
|
|
6
|
+
var result = base.querySelectorAll(selector);
|
|
7
|
+
if (options.throwIfMultiple && result.length > 1) {
|
|
8
|
+
throw new Error("There are more than one element with the type: ".concat(componentType, " and the id ").concat(componentId));
|
|
9
|
+
}
|
|
10
|
+
else if (options.throwIfNone && result.length === 0) {
|
|
11
|
+
throw new Error("There is not any element with the type: ".concat(componentType, " and the id ").concat(componentId));
|
|
12
|
+
}
|
|
13
|
+
return Array.from(result).map(function (r) { return ouiaSelectorsFor(r); });
|
|
14
|
+
};
|
|
15
|
+
var _queryAllByOuia = function (base, componentType, componentId) {
|
|
16
|
+
return _ouiaSearchFunction(base, componentType, componentId, {
|
|
17
|
+
throwIfNone: false,
|
|
18
|
+
throwIfMultiple: false,
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var _queryByOuia = function (base, componentType, componentId) {
|
|
22
|
+
var elements = _ouiaSearchFunction(base, componentType, componentId, {
|
|
23
|
+
throwIfNone: false,
|
|
24
|
+
throwIfMultiple: true,
|
|
25
|
+
});
|
|
26
|
+
return elements.length > 0 ? elements[0] : null;
|
|
27
|
+
};
|
|
28
|
+
var _getAllByOuia = function (base, componentType, componentId) {
|
|
29
|
+
return _ouiaSearchFunction(base, componentType, componentId, {
|
|
30
|
+
throwIfNone: true,
|
|
31
|
+
throwIfMultiple: false,
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var _getByOuia = function (base, componentType, componentId) {
|
|
35
|
+
var elements = _ouiaSearchFunction(base, componentType, componentId, {
|
|
36
|
+
throwIfNone: true,
|
|
37
|
+
throwIfMultiple: true,
|
|
38
|
+
});
|
|
39
|
+
return elements[0];
|
|
40
|
+
};
|
|
41
|
+
export var ouiaSelectors = {
|
|
42
|
+
getByOuia: function (componentType, componentId) { return _getByOuia(document.body, componentType, componentId); },
|
|
43
|
+
getAllByOuia: function (componentType, componentId) { return _getAllByOuia(document.body, componentType, componentId); },
|
|
44
|
+
queryByOuia: function (componentType, componentId) { return _queryByOuia(document.body, componentType, componentId); },
|
|
45
|
+
queryAllByOuia: function (componentType, componentId) { return _queryAllByOuia(document.body, componentType, componentId); },
|
|
46
|
+
};
|
|
47
|
+
export var ouiaSelectorsFor = function (base) {
|
|
48
|
+
return Object.assign(base, {
|
|
49
|
+
getByOuia: function (componentType, componentId) { return _getByOuia(base, componentType, componentId); },
|
|
50
|
+
getAllByOuia: function (componentType, componentId) { return _getAllByOuia(base, componentType, componentId); },
|
|
51
|
+
queryByOuia: function (componentType, componentId) { return _queryByOuia(base, componentType, componentId); },
|
|
52
|
+
queryAllByOuia: function (componentType, componentId) { return _queryAllByOuia(base, componentType, componentId); },
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=OuiaSelectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OuiaSelectors.js","sourceRoot":"","sources":["../../src/OuiaSelectors/OuiaSelectors.ts"],"names":[],"mappings":"AAgBA,IAAM,mBAAmB,GAAG,UAC1B,IAAiB,EACjB,aAAqB,EACrB,WAA+B,EAC/B,OAA0B;IAE1B,IAAI,QAAQ,GAAG,sCAA8B,aAAa,QAAI,CAAC;IAC/D,IAAI,WAAW,EAAE;QACf,QAAQ,IAAI,oCAA4B,WAAW,QAAI,CAAC;KACzD;IAED,IAAM,MAAM,GAAG,IA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C9G,WAAW,EAAE,UAAC,aAAqB,EAAE,WAAoB,IAAK,OAAA,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,CAAC,EAA9C,CAA8C;QAC5G,cAAc,EAAE,UAAC,aAAqB,EAAE,WAAoB,IAAK,OAAA,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,CAAC,EAAjD,CAAiD;KACnH,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/OuiaSelectors/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
package/esm/index.js
ADDED
package/esm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OuiaSelectors';
|
package/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./OuiaSelectors"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@redhat-cloud-services/frontend-components-testing",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Testing utilities for RedHat Cloud Services project.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "esm/index.js",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "npm run build:js && npm run build:esm && npm run build:packages",
|
|
14
|
+
"build:packages": "node ../../scripts/build-packages.js --forceTypes",
|
|
15
|
+
"build:esm": "npx tsc --module es2015 --target es5",
|
|
16
|
+
"build:js": "npx tsc -p tsconfig.cjs.json"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/RedHatInsights/frontend-components.git"
|
|
21
|
+
},
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "Apache-2.0",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/RedHatInsights/frontend-components/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/testing#readme",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
}
|
|
34
|
+
}
|