@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
28 lines • 1.27 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 selectors_1 = require("@awsui/test-utils-core/selectors");
const styles_selectors_js_1 = require("../../../internal/components/option/styles.selectors.js");
const styles_selectors_js_2 = require("../../../select/parts/styles.selectors.js");
class OptionWrapper extends selectors_1.ComponentWrapper {
findLabel() {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return this.findByClassName(styles_selectors_js_1.default.label);
}
findDescription() {
return this.findByClassName(styles_selectors_js_1.default.description);
}
findLabelTag() {
return this.findByClassName(styles_selectors_js_1.default['label-tag']);
}
findTags() {
return this.findAllByClassName(styles_selectors_js_1.default.tag);
}
findDisabledReason() {
return (0, selectors_1.createWrapper)().find(`.${styles_selectors_js_2.default['disabled-reason-tooltip']}`);
}
}
exports.default = OptionWrapper;
OptionWrapper.rootSelector = styles_selectors_js_1.default.option;
//# sourceMappingURL=option.js.map