@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
38 lines • 1.91 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const dom_1 = require("@awsui/test-utils-core/dom");
const styles_selectors_js_1 = require("../../../container/styles.selectors.js");
const styles_selectors_js_2 = require("../../../container/test-classes/styles.selectors.js");
const styles_selectors_js_3 = require("../../../expandable-section/styles.selectors.js");
const styles_selectors_js_4 = require("../../../header/styles.selectors.js");
class ExpandableSectionWrapper extends dom_1.ComponentWrapper {
findHeader() {
return this.findByClassName(styles_selectors_js_3.default.header);
}
findContent() {
return this.findByClassName(styles_selectors_js_3.default.content);
}
/*
* Returns the area that can be clicked in order to expand or collapse the section.
*/
findExpandButton() {
return this.findByClassName(styles_selectors_js_3.default['expand-button']);
}
findExpandedContent() {
return this.find(`:scope > .${styles_selectors_js_3.default['content-expanded']}, :scope > .${styles_selectors_js_1.default['content-wrapper']} > .${styles_selectors_js_1.default.content} > .${styles_selectors_js_2.default['content-inner']} > .${styles_selectors_js_3.default['content-expanded']}`);
}
findExpandIcon() {
return this.findByClassName(styles_selectors_js_3.default['icon-container']);
}
findHeaderText() {
return this.findByClassName(styles_selectors_js_3.default['header-text']);
}
findHeaderDescription() {
return this.findByClassName(styles_selectors_js_4.default.description);
}
}
ExpandableSectionWrapper.rootSelector = styles_selectors_js_3.default.root;
exports.default = ExpandableSectionWrapper;
//# sourceMappingURL=index.js.map