Home / Class/ ButtonTestCases Class — react Architecture

ButtonTestCases Class — react Architecture

Architecture documentation for the ButtonTestCases class in index.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  89e7d4af_9bf3_eac1_1737_93b9d99827b5["ButtonTestCases"]
  3a7ad74e_9f1c_c8d1_84f4_c2b053813d1d["index.js"]
  89e7d4af_9bf3_eac1_1737_93b9d99827b5 -->|defined in| 3a7ad74e_9f1c_c8d1_84f4_c2b053813d1d
  78be39ce_4c78_4d33_aedf_731792c13496["render()"]
  89e7d4af_9bf3_eac1_1737_93b9d99827b5 -->|method| 78be39ce_4c78_4d33_aedf_731792c13496

Relationship Graph

Source Code

fixtures/dom/src/components/fixtures/buttons/index.js lines 10–43

export default class ButtonTestCases extends React.Component {
  render() {
    return (
      <FixtureSet title="Buttons">
        <TestCase
          title="onClick with disabled buttons"
          description="The onClick event handler should not be invoked when clicking on a disabled button">
          <TestCase.Steps>
            <li>Click on the disabled button</li>
          </TestCase.Steps>
          <TestCase.ExpectedResult>
            Nothing should happen
          </TestCase.ExpectedResult>
          <button disabled onClick={onButtonClick}>
            Click Me
          </button>
        </TestCase>
        <TestCase
          title="onClick with disabled buttons containing other elements"
          description="The onClick event handler should not be invoked when clicking on a disabled button that contains other elements">
          <TestCase.Steps>
            <li>Click on the disabled button, which contains a span</li>
          </TestCase.Steps>
          <TestCase.ExpectedResult>
            Nothing should happen
          </TestCase.ExpectedResult>
          <button disabled onClick={onButtonClick}>
            <span>Click Me</span>
          </button>
        </TestCase>
      </FixtureSet>
    );
  }
}

Domain

Frequently Asked Questions

What is the ButtonTestCases class?
ButtonTestCases is a class in the react codebase, defined in fixtures/dom/src/components/fixtures/buttons/index.js.
Where is ButtonTestCases defined?
ButtonTestCases is defined in fixtures/dom/src/components/fixtures/buttons/index.js at line 10.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free