Cloudscape Design System
  • Get started
  • Foundation
  • Components
  • Patterns
  • Demos
  • GitHub 
Cloudscape Design System
  • Get started
  • Foundation
  • Components
  • Patterns
  • Demos
  • GitHub 
  • About

Get started


  • Guides

    • Get started for designers
    • Get started for developers

  • Resources

    • Design resources

  • Integration

    • Using Cloudscape components
    • Global styles

  • Development guides

    • Collection hooks package
    • Content security policy (CSP)
    • Responsive development
    • State management
    • Z-index
    • Built-in internationalization
    • Bidirectionality

  • Testing

    • Introduction to testing
    • Testing frameworks integration
    • Testing core classes
  1. Cloudscape Design System
    • Get started
    • Testing: Testing core classes
    1. Cloudscape Design System
    2. Get started
    3. Testing: Testing core classes

    Testing core classes

    API documentation for test utilities core classes.

    Published: November 16, 2021

    On this page

    1. Overview
    2. Unit Testing
    3. Integration testing

    Did this page help you?

    Tell us more - optional

    1000 character(s) available. Do not disclose any personal, commercially sensitive, or confidential information.

    Overview

    This article contains the API documentation for Cloudscape test utilities core classes. These utilities don’t depend on the specific component you’re testing. For information about how to use these core classes in your tests, see introduction to testing.

    Test utilities expose two core classes:

    • An element wrapper for unit tests, where you typically have direct access to the Document Object Model (DOM).

    • An element wrapper for integration tests, where it’s typical to rely on string selectors.

    Unit Testing

    The entry point for unit tests is the default method exposed by the '@cloudscape-design/components/test-utils/dom'package. This method returns an instance of ElementWrapper. The following table describes the class interface.

    For more information and examples for unit testing with Cloudscape, see introduction to testing.

    Integration testing

    The entry point for unit tests is the default method exposed by the '@cloudscape-design/components/test-utils/selectors'package. This method returns an instance of ElementWrapper. The following table describes the class interface.

    For more information and examples for integration testing with Cloudscape see introduction to testing.

    Did this page help you?

    Tell us more - optional

    1000 character(s) available. Do not disclose any personal, commercially sensitive, or confidential information.
    • About
    • Connect
    • Privacy 
    • Site terms 
    • © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Made with love atAWS