@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
40 lines • 1.5 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 button_1 = require("../button");
const styles_selectors_js_1 = require("../../../flashbar/styles.selectors.js");
class FlashWrapper extends dom_1.ComponentWrapper {
/**
* Returns the dismiss button.
*
* The dismiss button is only rendered when the `dismissible` property is set to `true`.
*/
findDismissButton() {
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-button']}`, button_1.default);
}
/**
* Returns the action slot.
*/
findAction() {
return this.findByClassName(styles_selectors_js_1.default['action-slot']);
}
/**
* Returns the action button.
*
* The action button is only rendered when the `buttonText` property is set.
*/
findActionButton() {
return this.findComponent(`.${styles_selectors_js_1.default['action-button']}`, button_1.default);
}
findHeader() {
return this.findByClassName(styles_selectors_js_1.default['flash-header']);
}
findContent() {
return this.findByClassName(styles_selectors_js_1.default['flash-content']);
}
}
FlashWrapper.rootSelector = styles_selectors_js_1.default['flash-list-item'];
exports.default = FlashWrapper;
//# sourceMappingURL=flash.js.map