@cloudscape-design/components-themeable 3.0.1218 → 3.0.1220
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +8 -0
- package/lib/internal/scss/internal/do-not-use/feature-prompt/styles.scss +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/template/app-layout/utils/use-drawers.d.ts +2 -1
- package/lib/internal/template/app-layout/utils/use-drawers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/utils/use-drawers.js +8 -2
- package/lib/internal/template/app-layout/utils/use-drawers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/feature-notifications-drawer-content.d.ts +13 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/feature-notifications-drawer-content.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/feature-notifications-drawer-content.js +47 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/feature-notifications-drawer-content.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -81
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +2 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js +12 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-feature-notifications.d.ts +18 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-feature-notifications.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-feature-notifications.js +165 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-feature-notifications.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +3 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +13 -5
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +3 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +13 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
- package/lib/internal/template/drawer/use-sticky-footer.js +2 -2
- package/lib/internal/template/drawer/use-sticky-footer.js.map +1 -1
- package/lib/internal/template/i18n/messages/all.all.js +1 -1
- package/lib/internal/template/i18n/messages/all.all.json +1 -1
- package/lib/internal/template/i18n/messages/all.ar.js +1 -1
- package/lib/internal/template/i18n/messages/all.ar.json +1 -1
- package/lib/internal/template/i18n/messages/all.de.js +1 -1
- package/lib/internal/template/i18n/messages/all.de.json +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
- package/lib/internal/template/i18n/messages/all.en.js +1 -1
- package/lib/internal/template/i18n/messages/all.en.json +1 -1
- package/lib/internal/template/i18n/messages/all.es.js +1 -1
- package/lib/internal/template/i18n/messages/all.es.json +1 -1
- package/lib/internal/template/i18n/messages/all.fr.js +1 -1
- package/lib/internal/template/i18n/messages/all.fr.json +1 -1
- package/lib/internal/template/i18n/messages/all.id.js +1 -1
- package/lib/internal/template/i18n/messages/all.id.json +1 -1
- package/lib/internal/template/i18n/messages/all.it.js +1 -1
- package/lib/internal/template/i18n/messages/all.it.json +1 -1
- package/lib/internal/template/i18n/messages/all.ja.js +1 -1
- package/lib/internal/template/i18n/messages/all.ja.json +1 -1
- package/lib/internal/template/i18n/messages/all.ko.js +1 -1
- package/lib/internal/template/i18n/messages/all.ko.json +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
- package/lib/internal/template/i18n/messages/all.tr.js +1 -1
- package/lib/internal/template/i18n/messages/all.tr.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
- package/lib/internal/template/i18n/messages-types.d.ts +618 -609
- package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
- package/lib/internal/template/i18n/messages-types.js +0 -1
- package/lib/internal/template/i18n/messages-types.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/chart-popover/index.d.ts +1 -1
- package/lib/internal/template/internal/components/chart-popover/index.js +1 -1
- package/lib/internal/template/internal/components/chart-popover/index.js.map +1 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts +4 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.js.map +1 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/internal.js +37 -11
- package/lib/internal/template/internal/do-not-use/feature-prompt/internal.js.map +1 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/styles.css.js +3 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/styles.scoped.css +4 -1
- package/lib/internal/template/internal/do-not-use/feature-prompt/styles.selectors.js +3 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/persistence/index.d.ts +5 -0
- package/lib/internal/template/internal/persistence/index.d.ts.map +1 -1
- package/lib/internal/template/internal/persistence/index.js +17 -16
- package/lib/internal/template/internal/persistence/index.js.map +1 -1
- package/lib/internal/template/internal/plugins/widget/core.d.ts +3 -3
- package/lib/internal/template/internal/plugins/widget/core.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/widget/core.js.map +1 -1
- package/lib/internal/template/internal/plugins/widget/index.d.ts +10 -2
- package/lib/internal/template/internal/plugins/widget/index.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/widget/index.js +23 -0
- package/lib/internal/template/internal/plugins/widget/index.js.map +1 -1
- package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +39 -3
- package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
- package/lib/internal/template/internal/plugins/widget.d.ts +1 -1
- package/lib/internal/template/internal/plugins/widget.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/widget.js +1 -1
- package/lib/internal/template/internal/plugins/widget.js.map +1 -1
- package/lib/internal/template/internal/utils/promises.d.ts +11 -0
- package/lib/internal/template/internal/utils/promises.d.ts.map +1 -1
- package/lib/internal/template/internal/utils/promises.js +24 -0
- package/lib/internal/template/internal/utils/promises.js.map +1 -1
- package/lib/internal/template/package.json +2 -0
- package/lib/internal/template/plugins/index.d.ts +8 -0
- package/lib/internal/template/plugins/index.d.ts.map +1 -0
- package/lib/internal/template/plugins/index.js +11 -0
- package/lib/internal/template/plugins/index.js.map +1 -0
- package/lib/internal/template/popover/body.d.ts +2 -2
- package/lib/internal/template/popover/body.d.ts.map +1 -1
- package/lib/internal/template/popover/body.js +2 -2
- package/lib/internal/template/popover/body.js.map +1 -1
- package/lib/internal/template/select/parts/filter.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/hotspot/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/hotspot/index.js +2 -2
- package/lib/internal/template/test-utils/dom/hotspot/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/internal/autosuggest-input.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/internal/autosuggest-input.js +2 -2
- package/lib/internal/template/test-utils/dom/internal/autosuggest-input.js.map +1 -1
- package/lib/internal/template/test-utils/dom/popover/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/popover/index.js +3 -2
- package/lib/internal/template/test-utils/dom/popover/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/progress-bar/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/progress-bar/index.js +4 -2
- package/lib/internal/template/test-utils/dom/progress-bar/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/s3-resource-selector/index.js +5 -3
- package/lib/internal/template/test-utils/dom/s3-resource-selector/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/tutorial-panel/tutorial.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/tutorial-panel/tutorial.js +2 -2
- package/lib/internal/template/test-utils/dom/tutorial-panel/tutorial.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/hotspot/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/hotspot/index.js +2 -2
- package/lib/internal/template/test-utils/selectors/hotspot/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.js +2 -2
- package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/popover/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/popover/index.js +3 -2
- package/lib/internal/template/test-utils/selectors/popover/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/progress-bar/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/progress-bar/index.js +3 -2
- package/lib/internal/template/test-utils/selectors/progress-bar/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/s3-resource-selector/index.js +5 -3
- package/lib/internal/template/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/tutorial-panel/tutorial.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/tutorial-panel/tutorial.js +2 -2
- package/lib/internal/template/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const index_js_1 = require("../index.js");
|
|
7
8
|
const styles_selectors_js_1 = require("../../../popover/styles.selectors.js");
|
|
8
9
|
class PopoverWrapper extends dom_1.ComponentWrapper {
|
|
@@ -35,9 +36,9 @@ class PopoverWrapper extends dom_1.ComponentWrapper {
|
|
|
35
36
|
*/
|
|
36
37
|
findDismissButton(options = { renderWithPortal: false }) {
|
|
37
38
|
if (options.renderWithPortal) {
|
|
38
|
-
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
39
|
+
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
39
40
|
}
|
|
40
|
-
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
41
|
+
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
PopoverWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AACtC,0CAAwC;AAExC,8EAA0D;AAE1D,MAAqB,cAAe,SAAQ,sBAAgB;IAG1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;QAC9C,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;QAC/C,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;QACrD,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;QACvF,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;;AArCM,2BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;kBADvB,cAAc"}
|
|
@@ -9,7 +9,7 @@ export default class ProgressBarWrapper extends ComponentWrapper {
|
|
|
9
9
|
*
|
|
10
10
|
* @param status
|
|
11
11
|
*
|
|
12
|
-
* [optional] Status of the result text. It can be
|
|
12
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
13
13
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
14
14
|
*/
|
|
15
15
|
findResultText(status?: string): ElementWrapper | null;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const styles_selectors_js_1 = require("../../../progress-bar/styles.selectors.js");
|
|
7
8
|
class ProgressBarWrapper extends dom_1.ComponentWrapper {
|
|
8
9
|
findPercentageText() {
|
|
@@ -10,14 +11,15 @@ class ProgressBarWrapper extends dom_1.ComponentWrapper {
|
|
|
10
11
|
}
|
|
11
12
|
findResultButton() {
|
|
12
13
|
var _a;
|
|
13
|
-
return ((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.
|
|
14
|
+
return (((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.findComponent(`.${button_1.default.rootSelector}`, button_1.default)) ||
|
|
15
|
+
null);
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Returns the result text.
|
|
17
19
|
*
|
|
18
20
|
* @param status
|
|
19
21
|
*
|
|
20
|
-
* [optional] Status of the result text. It can be
|
|
22
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
21
23
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
22
24
|
*/
|
|
23
25
|
findResultText(status) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AAEtC,mFAA+D;AAE/D,MAAqB,kBAAmB,SAAQ,sBAAgB;IAG9D,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,gBAAgB;;QACd,OAAO,CACL,CAAA,MAAA,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,0CAAE,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC;YAC7G,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,MAAe;QAC5B,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,6BAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,eAAe,IAAI,6BAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACzD,CAAC;;AA5BM,+BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,kBAAkB"}
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const utils_1 = require("@cloudscape-design/test-utils-core/utils");
|
|
6
7
|
const __1 = require("../");
|
|
7
8
|
const button_1 = require("../button");
|
|
8
9
|
const input_1 = require("../input");
|
|
9
10
|
const modal_1 = require("../modal");
|
|
11
|
+
const select_1 = require("../select");
|
|
10
12
|
const table_1 = require("../table");
|
|
11
13
|
const styles_selectors_js_1 = require("../../../s3-resource-selector/s3-in-context/styles.selectors.js");
|
|
12
14
|
const styles_selectors_js_2 = require("../../../s3-resource-selector/s3-modal/styles.selectors.js");
|
|
@@ -23,7 +25,7 @@ class S3InContextWrapper extends dom_1.ComponentWrapper {
|
|
|
23
25
|
}
|
|
24
26
|
findVersionsSelect() {
|
|
25
27
|
const select = this.findByClassName(styles_selectors_js_1.default['layout-version']);
|
|
26
|
-
return select && select.
|
|
28
|
+
return select && select.findComponent(`.${select_1.default.rootSelector}`, select_1.default);
|
|
27
29
|
}
|
|
28
30
|
findViewButton() {
|
|
29
31
|
return this.findComponent(`.${styles_selectors_js_1.default['view-button']}`, button_1.default);
|
|
@@ -40,11 +42,11 @@ class S3ResourceSelectorWrapper extends dom_1.ComponentWrapper {
|
|
|
40
42
|
return this.findComponent(`.${styles_selectors_js_1.default.root}`, S3InContextWrapper);
|
|
41
43
|
}
|
|
42
44
|
findModal() {
|
|
43
|
-
const modal = (0, __1.default)().
|
|
45
|
+
const modal = (0, __1.default)().findComponent((0, utils_1.appendSelector)(`.${styles_selectors_js_4.default['modal-root']}`, `.${modal_1.default.rootSelector}`), modal_1.default);
|
|
44
46
|
return modal && new S3ModalWrapper(modal.getElement());
|
|
45
47
|
}
|
|
46
48
|
findTable() {
|
|
47
|
-
const modal =
|
|
49
|
+
const modal = (0, __1.default)().findComponent(`.${modal_1.default.rootSelector}`, modal_1.default);
|
|
48
50
|
return modal && modal.findComponent(`.${table_1.default.rootSelector}`, table_1.default);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/s3-resource-selector/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/s3-resource-selector/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,oEAA0E;AAE1E,2BAAgC;AAChC,sCAAsC;AACtC,oCAAoC;AACpC,oCAAoC;AACpC,sCAAsC;AACtC,oCAAoC;AAEpC,yGAA8F;AAC9F,oGAAqF;AACrF,2FAAuE;AACvE,wGAA4F;AAE5F,MAAM,cAAe,SAAQ,eAAY;IACvC,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAChF,CAAC;CACF;AAED,MAAM,kBAAmB,SAAQ,sBAAgB;IAC/C,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,YAAY,CAAC,EAAE,EAAE,eAAY,CAAE,CAAC;IAChF,CAAC;IAED,kBAAkB;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACvE,OAAO,MAAM,IAAI,MAAM,CAAC,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC,CAAC;IACzF,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,aAAa,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAClF,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IACpF,CAAC;CACF;AAED,MAAqB,yBAA0B,SAAQ,sBAAgB;IAGrE,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,IAAI,EAAE,EAAE,kBAAkB,CAAE,CAAC;IAC7E,CAAC;IAED,SAAS;QACP,MAAM,KAAK,GAAG,IAAA,WAAa,GAAE,CAAC,aAAa,CACzC,IAAA,sBAAc,EAAC,IAAI,6BAAc,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,eAAY,CAAC,YAAY,EAAE,CAAC,EACnF,eAAY,CACb,CAAC;QACF,OAAO,KAAK,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,SAAS;QACP,MAAM,KAAK,GAAG,IAAA,WAAa,GAAE,CAAC,aAAa,CAAC,IAAI,eAAY,CAAC,YAAY,EAAE,EAAE,eAAY,CAAC,CAAC;QAC3F,OAAO,KAAK,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,eAAY,CAAC,YAAY,EAAE,EAAE,eAAY,CAAC,CAAC;IACrF,CAAC;;AArBM,sCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,yBAAyB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
+
import AlertWrapper from '../alert';
|
|
2
3
|
import ButtonWrapper from '../button';
|
|
3
|
-
import { AlertWrapper } from '../index.js';
|
|
4
4
|
import LinkWrapper from '../link';
|
|
5
5
|
export default class TutorialItemWrapper extends ComponentWrapper {
|
|
6
6
|
static rootSelector: string;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const alert_1 = require("../alert");
|
|
6
7
|
const button_1 = require("../button");
|
|
7
|
-
const index_js_1 = require("../index.js");
|
|
8
8
|
const link_1 = require("../link");
|
|
9
9
|
const styles_selectors_js_1 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
|
|
10
10
|
class TutorialItemWrapper extends dom_1.ComponentWrapper {
|
|
@@ -30,7 +30,7 @@ class TutorialItemWrapper extends dom_1.ComponentWrapper {
|
|
|
30
30
|
return this.findByClassName(styles_selectors_js_1.default.completed);
|
|
31
31
|
}
|
|
32
32
|
findPrerequisitesAlert() {
|
|
33
|
-
return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`,
|
|
33
|
+
return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`, alert_1.default);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
TutorialItemWrapper.rootSelector = styles_selectors_js_1.default['tutorial-box'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,oCAAoC;AACpC,sCAAsC;AACtC,kCAAkC;AAElC,8GAA0F;AAE1F,MAAqB,mBAAoB,SAAQ,sBAAgB;IAG/D,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,KAAK,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC/D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,cAAW,CAAC,CAAC;IAC1E,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;IAED,sBAAsB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,eAAY,CAAC,CAAC;IAC/E,CAAC;;AAhCM,gCAAY,GAAW,6BAAM,CAAC,cAAc,CAAC,CAAC;kBADlC,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
-
import
|
|
2
|
+
import AnnotationWrapper from '../annotation';
|
|
3
3
|
export default class HotspotWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findTrigger(): ElementWrapper;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const annotation_1 = require("../annotation");
|
|
6
7
|
const index_1 = require("../index");
|
|
7
|
-
const index_js_1 = require("../index.js");
|
|
8
8
|
const styles_selectors_js_1 = require("../../../annotation-context/annotation/styles.selectors.js");
|
|
9
9
|
const styles_selectors_js_2 = require("../../../hotspot/styles.selectors.js");
|
|
10
10
|
class HotspotWrapper extends selectors_1.ComponentWrapper {
|
|
@@ -12,7 +12,7 @@ class HotspotWrapper extends selectors_1.ComponentWrapper {
|
|
|
12
12
|
return this.findByClassName(styles_selectors_js_1.default.hotspot);
|
|
13
13
|
}
|
|
14
14
|
findAnnotation() {
|
|
15
|
-
return (0, index_1.default)().findComponent(`.${styles_selectors_js_1.default.annotation}`,
|
|
15
|
+
return (0, index_1.default)().findComponent(`.${styles_selectors_js_1.default.annotation}`, annotation_1.default);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
HotspotWrapper.rootSelector = styles_selectors_js_2.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/hotspot/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,oCAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/hotspot/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,8CAA8C;AAC9C,oCAAqC;AACrC,oGAA0F;AAC1F,8EAAiE;AACjE,MAAqB,cAAe,SAAQ,4BAAgB;IAE1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAgB,CAAC,OAAO,CAAE,CAAC;IACzD,CAAC;IACD,cAAc;QACZ,OAAO,IAAA,eAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAgB,CAAC,UAAU,EAAE,EAAE,oBAAiB,CAAE,CAAC;IAC9F,CAAC;;AANM,2BAAY,GAAW,6BAAa,CAAC,IAAI,CAAC;kBAD9B,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
-
import
|
|
2
|
+
import InputWrapper from '../input';
|
|
3
3
|
import DropdownWrapper from './dropdown.js';
|
|
4
4
|
export default class AutosuggestInputWrapper extends ComponentWrapper {
|
|
5
5
|
static rootSelector: string;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
-
const
|
|
6
|
+
const input_1 = require("../input");
|
|
7
7
|
const dropdown_js_1 = require("./dropdown.js");
|
|
8
8
|
const styles_selectors_js_1 = require("../../../input/styles.selectors.js");
|
|
9
9
|
const styles_selectors_js_2 = require("../../../internal/components/autosuggest-input/styles.selectors.js");
|
|
10
10
|
const styles_selectors_js_3 = require("../../../internal/components/dropdown/styles.selectors.js");
|
|
11
11
|
class AutosuggestInputWrapper extends selectors_1.ComponentWrapper {
|
|
12
12
|
findInput() {
|
|
13
|
-
return this.findComponent(`.${styles_selectors_js_1.default['input-container']}`,
|
|
13
|
+
return this.findComponent(`.${styles_selectors_js_1.default['input-container']}`, input_1.default);
|
|
14
14
|
}
|
|
15
15
|
findDropdown() {
|
|
16
16
|
return this.findComponent(`.${styles_selectors_js_3.default.root}`, dropdown_js_1.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autosuggest-input.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/autosuggest-input.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"autosuggest-input.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/autosuggest-input.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgF;AAChF,oCAAoC;AACpC,+CAA4C;AAC5C,4EAA6D;AAC7D,4GAAwF;AACxF,mGAAuF;AACvF,MAAqB,uBAAwB,SAAQ,4BAAgB;IAEnE,SAAS;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,iBAAiB,CAAC,EAAE,EAAE,eAAY,CAAE,CAAC;IACjF,CAAC;IACD,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,IAAI,EAAE,EAAE,qBAAe,CAAE,CAAC;IACzE,CAAC;;AANM,oCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,uBAAuB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
-
import
|
|
2
|
+
import ButtonWrapper from '../button';
|
|
3
3
|
export default class PopoverWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findTrigger(): ElementWrapper;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const index_js_1 = require("../index.js");
|
|
7
8
|
const styles_selectors_js_1 = require("../../../popover/styles.selectors.js");
|
|
8
9
|
class PopoverWrapper extends selectors_1.ComponentWrapper {
|
|
@@ -41,9 +42,9 @@ class PopoverWrapper extends selectors_1.ComponentWrapper {
|
|
|
41
42
|
renderWithPortal: false
|
|
42
43
|
}) {
|
|
43
44
|
if (options.renderWithPortal) {
|
|
44
|
-
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
45
|
+
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
45
46
|
}
|
|
46
|
-
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
47
|
+
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
PopoverWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,0CAAwC;AACxC,8EAA0D;AAC1D,MAAqB,cAAe,SAAQ,4BAAgB;IAE1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAO,GAAG;QACnB,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,OAAO,GAAG;QACpB,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,OAAO,GAAG;QAC1B,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;QACvF,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;;AA1CM,2BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;kBADvB,cAAc"}
|
|
@@ -9,7 +9,7 @@ export default class ProgressBarWrapper extends ComponentWrapper {
|
|
|
9
9
|
*
|
|
10
10
|
* @param status
|
|
11
11
|
*
|
|
12
|
-
* [optional] Status of the result text. It can be
|
|
12
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
13
13
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
14
14
|
*/
|
|
15
15
|
findResultText(status?: string): ElementWrapper;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const styles_selectors_js_1 = require("../../../progress-bar/styles.selectors.js");
|
|
7
8
|
class ProgressBarWrapper extends selectors_1.ComponentWrapper {
|
|
8
9
|
findPercentageText() {
|
|
@@ -10,14 +11,14 @@ class ProgressBarWrapper extends selectors_1.ComponentWrapper {
|
|
|
10
11
|
}
|
|
11
12
|
findResultButton() {
|
|
12
13
|
var _a;
|
|
13
|
-
return ((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.
|
|
14
|
+
return ((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.findComponent(`.${button_1.default.rootSelector}`, button_1.default)) || null;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Returns the result text.
|
|
17
18
|
*
|
|
18
19
|
* @param status
|
|
19
20
|
*
|
|
20
|
-
* [optional] Status of the result text. It can be
|
|
21
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
21
22
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
22
23
|
*/
|
|
23
24
|
findResultText(status) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,mFAA+D;AAC/D,MAAqB,kBAAmB,SAAQ,4BAAgB;IAE9D,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IACD,gBAAgB;;QACd,OAAO,CAAA,MAAA,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,0CAAE,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC,KAAI,IAAI,CAAC;IAC/H,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,MAAe;QAC5B,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,6BAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,eAAe,IAAI,6BAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACzD,CAAC;;AAtBM,+BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,kBAAkB"}
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const utils_1 = require("@cloudscape-design/test-utils-core/utils");
|
|
6
7
|
const __1 = require("../");
|
|
7
8
|
const button_1 = require("../button");
|
|
8
9
|
const input_1 = require("../input");
|
|
9
10
|
const modal_1 = require("../modal");
|
|
11
|
+
const select_1 = require("../select");
|
|
10
12
|
const table_1 = require("../table");
|
|
11
13
|
const styles_selectors_js_1 = require("../../../s3-resource-selector/s3-in-context/styles.selectors.js");
|
|
12
14
|
const styles_selectors_js_2 = require("../../../s3-resource-selector/s3-modal/styles.selectors.js");
|
|
@@ -23,7 +25,7 @@ class S3InContextWrapper extends selectors_1.ComponentWrapper {
|
|
|
23
25
|
}
|
|
24
26
|
findVersionsSelect() {
|
|
25
27
|
const select = this.findByClassName(styles_selectors_js_1.default['layout-version']);
|
|
26
|
-
return select && select.
|
|
28
|
+
return select && select.findComponent(`.${select_1.default.rootSelector}`, select_1.default);
|
|
27
29
|
}
|
|
28
30
|
findViewButton() {
|
|
29
31
|
return this.findComponent(`.${styles_selectors_js_1.default['view-button']}`, button_1.default);
|
|
@@ -40,11 +42,11 @@ class S3ResourceSelectorWrapper extends selectors_1.ComponentWrapper {
|
|
|
40
42
|
return this.findComponent(`.${styles_selectors_js_1.default.root}`, S3InContextWrapper);
|
|
41
43
|
}
|
|
42
44
|
findModal() {
|
|
43
|
-
const modal = (0, __1.default)().
|
|
45
|
+
const modal = (0, __1.default)().findComponent((0, utils_1.appendSelector)(`.${styles_selectors_js_4.default['modal-root']}`, `.${modal_1.default.rootSelector}`), modal_1.default);
|
|
44
46
|
return modal && new S3ModalWrapper(modal.getElement());
|
|
45
47
|
}
|
|
46
48
|
findTable() {
|
|
47
|
-
const modal =
|
|
49
|
+
const modal = (0, __1.default)().findComponent(`.${modal_1.default.rootSelector}`, modal_1.default);
|
|
48
50
|
return modal && modal.findComponent(`.${table_1.default.rootSelector}`, table_1.default);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/s3-resource-selector/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,2BAAgC;AAChC,sCAAsC;AACtC,oCAAoC;AACpC,oCAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/s3-resource-selector/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,oEAA0E;AAC1E,2BAAgC;AAChC,sCAAsC;AACtC,oCAAoC;AACpC,oCAAoC;AACpC,sCAAsC;AACtC,oCAAoC;AACpC,yGAA8F;AAC9F,oGAAqF;AACrF,2FAAuE;AACvE,wGAA4F;AAC5F,MAAM,cAAe,SAAQ,eAAY;IACvC,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAChF,CAAC;CACF;AACD,MAAM,kBAAmB,SAAQ,4BAAgB;IAC/C,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,YAAY,CAAC,EAAE,EAAE,eAAY,CAAE,CAAC;IAChF,CAAC;IACD,kBAAkB;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACvE,OAAO,MAAM,IAAI,MAAM,CAAC,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC,CAAC;IACzF,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,aAAa,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAClF,CAAC;IACD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IACpF,CAAC;CACF;AACD,MAAqB,yBAA0B,SAAQ,4BAAgB;IAErE,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,aAAa;QACX,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,IAAI,EAAE,EAAE,kBAAkB,CAAE,CAAC;IAC7E,CAAC;IACD,SAAS;QACP,MAAM,KAAK,GAAG,IAAA,WAAa,GAAE,CAAC,aAAa,CAAC,IAAA,sBAAc,EAAC,IAAI,6BAAc,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,eAAY,CAAC,YAAY,EAAE,CAAC,EAAE,eAAY,CAAC,CAAC;QAC/I,OAAO,KAAK,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACzD,CAAC;IACD,SAAS;QACP,MAAM,KAAK,GAAG,IAAA,WAAa,GAAE,CAAC,aAAa,CAAC,IAAI,eAAY,CAAC,YAAY,EAAE,EAAE,eAAY,CAAC,CAAC;QAC3F,OAAO,KAAK,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,eAAY,CAAC,YAAY,EAAE,EAAE,eAAY,CAAC,CAAC;IACrF,CAAC;;AAdM,sCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,yBAAyB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
+
import AlertWrapper from '../alert';
|
|
2
3
|
import ButtonWrapper from '../button';
|
|
3
|
-
import { AlertWrapper } from '../index.js';
|
|
4
4
|
import LinkWrapper from '../link';
|
|
5
5
|
export default class TutorialItemWrapper extends ComponentWrapper {
|
|
6
6
|
static rootSelector: string;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const alert_1 = require("../alert");
|
|
6
7
|
const button_1 = require("../button");
|
|
7
|
-
const index_js_1 = require("../index.js");
|
|
8
8
|
const link_1 = require("../link");
|
|
9
9
|
const styles_selectors_js_1 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
|
|
10
10
|
class TutorialItemWrapper extends selectors_1.ComponentWrapper {
|
|
@@ -30,7 +30,7 @@ class TutorialItemWrapper extends selectors_1.ComponentWrapper {
|
|
|
30
30
|
return this.findByClassName(styles_selectors_js_1.default.completed);
|
|
31
31
|
}
|
|
32
32
|
findPrerequisitesAlert() {
|
|
33
|
-
return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`,
|
|
33
|
+
return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`, alert_1.default);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
TutorialItemWrapper.rootSelector = styles_selectors_js_1.default['tutorial-box'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,oCAAoC;AACpC,sCAAsC;AACtC,kCAAkC;AAClC,8GAA0F;AAC1F,MAAqB,mBAAoB,SAAQ,4BAAgB;IAE/D,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,KAAK,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC/D,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,cAAW,CAAC,CAAC;IAC1E,CAAC;IACD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IACD,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IACD,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;IACD,sBAAsB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,eAAY,CAAC,CAAC;IAC/E,CAAC;;AAxBM,gCAAY,GAAW,6BAAM,CAAC,cAAc,CAAC,CAAC;kBADlC,mBAAmB"}
|