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 styles_selectors_js_1 = require("../../../form-field/styles.selectors.js"); class FormFieldWrapper extends selectors_1.ComponentWrapper { findControl() { return this.findByClassName(styles_selectors_js_1.default.control); } findLabel() { return this.findByClassName(styles_selectors_js_1.default.label); } findInfo() { return this.findByClassName(styles_selectors_js_1.default.info); } findConstraint() { return this.find(`:scope > .${styles_selectors_js_1.default.hints} .${styles_selectors_js_1.default.constraint}`); } findError() { return this.find(`:scope > .${styles_selectors_js_1.default.hints} .${styles_selectors_js_1.default.error} .${styles_selectors_js_1.default.error__message}`); } findWarning() { return this.find(`:scope > .${styles_selectors_js_1.default.hints} .${styles_selectors_js_1.default.warning} .${styles_selectors_js_1.default.warning__message}`); } findDescription() { return this.findByClassName(styles_selectors_js_1.default.description); } findSecondaryControl() { return this.findByClassName(styles_selectors_js_1.default['secondary-control']); } } exports.default = FormFieldWrapper; FormFieldWrapper.rootSelector = styles_selectors_js_1.default.root; //# sourceMappingURL=index.js.map