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

45 lines 1.34 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 dom_1 = require("@awsui/test-utils-core/dom"); const option_1 = require("../internal/option"); const styles_selectors_js_1 = require("../../../token/test-classes/styles.selectors.js"); class TokenWrapper extends dom_1.ComponentWrapper { findOption() { return this.findComponent(`.${option_1.default.rootSelector}`, option_1.default); } /** * Returns the token label. */ findLabel() { return this.findOption().findLabel(); } /** * Returns the token label tag. */ findLabelTag() { return this.findOption().findLabelTag(); } /** * Returns the token description. */ findDescription() { return this.findOption().findDescription(); } /** * Returns the token tags. */ findTags() { return this.findOption().findTags(); } /** * Returns the token dismiss button. */ findDismiss() { return this.findByClassName(styles_selectors_js_1.default['dismiss-button']); } } TokenWrapper.rootSelector = styles_selectors_js_1.default.root; exports.default = TokenWrapper; //# sourceMappingURL=index.js.map