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

52 lines 2.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const input_1 = require("../input"); const dropdown_host_1 = require("../internal/dropdown-host"); const styles_selectors_js_1 = require("../../../input/styles.selectors.js"); const styles_selectors_js_2 = require("../../../internal/components/button-trigger/styles.selectors.js"); const styles_selectors_js_3 = require("../../../internal/components/dropdown-status/styles.selectors.js"); const styles_selectors_js_4 = require("../../../internal/components/dropdown-status/styles.selectors.js"); const styles_selectors_js_5 = require("../../../select/parts/styles.selectors.js"); const styles_selectors_js_6 = require("../../../select/styles.selectors.js"); class SelectWrapper extends dropdown_host_1.default { /** * @param options * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag. */ findErrorRecoveryButton(options = { expandToViewport: false }) { return this.findDropdown(options).findByClassName(styles_selectors_js_4.default.recovery); } /** * @param options * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag. */ findStatusIndicator(options = { expandToViewport: false }) { return this.findDropdown(options).findByClassName(styles_selectors_js_3.default.root); } /** * Returns the input that is used for filtering. * @param options * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag. */ findFilteringInput(options = { expandToViewport: false }) { return this.findDropdown(options).findComponent(`.${styles_selectors_js_1.default['input-container']}`, input_1.default); } findInlineLabel() { return this.findByClassName(styles_selectors_js_5.default['inline-label']); } findPlaceholder() { return this.findByClassName(styles_selectors_js_5.default.placeholder); } findTrigger() { return this.findByClassName(styles_selectors_js_2.default['button-trigger']); } } exports.default = SelectWrapper; SelectWrapper.rootSelector = styles_selectors_js_6.default.root; //# sourceMappingURL=index.js.map