UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

35 lines 1.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 const selectors_1 = require("@awsui/test-utils-core/selectors"); const box_1 = require("../box"); const styles_selectors_js_1 = require("../../../column-layout/flexible-column-layout/styles.selectors.js"); const styles_selectors_js_2 = require("../../../key-value-pairs/styles.selectors.js"); class KeyValuePairsPairWrapper extends selectors_1.ComponentWrapper { findLabel() { return this.findByClassName(styles_selectors_js_2.default['key-label']); } findValue() { return this.findByClassName(styles_selectors_js_2.default.detail); } findInfo() { return this.findByClassName(styles_selectors_js_2.default.info); } } class KeyValuePairsItemWrapper extends KeyValuePairsPairWrapper { findGroupTitle() { return this.findComponent(`.${box_1.default.rootSelector}`, selectors_1.ElementWrapper); } findGroupPairs() { return this.findAllByClassName(styles_selectors_js_2.default['group-list-item']).map(i => new KeyValuePairsPairWrapper(i.getElement())); } } class KeyValuePairsWrapper extends selectors_1.ComponentWrapper { findItems() { return this.findAllByClassName(styles_selectors_js_1.default.item).map(i => new KeyValuePairsItemWrapper(i.getElement())); } } KeyValuePairsWrapper.rootSelector = styles_selectors_js_2.default['key-value-pairs']; exports.default = KeyValuePairsWrapper; //# sourceMappingURL=index.js.map