index.js — react Source File
Architecture documentation for index.js, a javascript file in the react codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 521539ea_86e7_ff91_69c5_cfe84ee86057["index.js"] 9b76e842_634c_c5b7_4b94_5edc59aa8593["FixtureSet.js"] 521539ea_86e7_ff91_69c5_cfe84ee86057 --> 9b76e842_634c_c5b7_4b94_5edc59aa8593 65357a08_bc21_2bce_123e_862a42ec5c4f["FixtureSet"] 521539ea_86e7_ff91_69c5_cfe84ee86057 --> 65357a08_bc21_2bce_123e_862a42ec5c4f 450b900f_06f2_a36e_dc08_d8d5e3693053["TestCase.js"] 521539ea_86e7_ff91_69c5_cfe84ee86057 --> 450b900f_06f2_a36e_dc08_d8d5e3693053 afd3da20_1e32_2d56_9fe9_55c59008edfd["TestCase"] 521539ea_86e7_ff91_69c5_cfe84ee86057 --> afd3da20_1e32_2d56_9fe9_55c59008edfd style 521539ea_86e7_ff91_69c5_cfe84ee86057 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
const React = window.React;
function onButtonClick() {
window.alert(`This shouldn't have happened!`);
}
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
Subdomains
Functions
Classes
Dependencies
Source
Frequently Asked Questions
What does index.js do?
index.js is a source file in the react codebase, written in javascript. It belongs to the CompilerCore domain, Gating subdomain.
What functions are defined in index.js?
index.js defines 1 function(s): onButtonClick.
What does index.js depend on?
index.js imports 4 module(s): FixtureSet, FixtureSet.js, TestCase, TestCase.js.
Where is index.js in the architecture?
index.js is located at fixtures/dom/src/components/fixtures/buttons/index.js (domain: CompilerCore, subdomain: Gating, directory: fixtures/dom/src/components/fixtures/buttons).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free