Home / File/ index.js — react Source File

index.js — react Source File

Architecture documentation for index.js, a javascript file in the react codebase. 9 imports, 0 dependents.

File javascript BabelCompiler Entrypoint 9 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b8eeb77a_628d_0cf7_3055_29d4041e74be["index.js"]
  43315ad6_972b_89f2_a26c_ae2c6075675a["FixtureSet.js"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> 43315ad6_972b_89f2_a26c_ae2c6075675a
  f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c["FixtureSet"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c
  14dde3c9_48ef_6e34_3667_978d06aff15d["TestCase.js"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> 14dde3c9_48ef_6e34_3667_978d06aff15d
  e1e356f5_b085_dad5_a81f_4b4844381311["TestCase"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> e1e356f5_b085_dad5_a81f_4b4844381311
  09f84da7_e060_f0e7_c644_30609f5d6cf9["JumpingCursorTestCase.js"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> 09f84da7_e060_f0e7_c644_30609f5d6cf9
  d7d21276_809f_41ab_c851_e45f3ad6336b["JumpingCursorTestCase"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> d7d21276_809f_41ab_c851_e45f3ad6336b
  d330a9a1_820d_76e5_e7a6_5ada0e01052a["EmailEnabledAttributesTestCase.js"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> d330a9a1_820d_76e5_e7a6_5ada0e01052a
  eec899de_815c_f6c8_c040_9d5b80274a87["EmailDisabledAttributesTestCase.js"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> eec899de_815c_f6c8_c040_9d5b80274a87
  3904d5f7_fa5d_aea1_ab42_b06c25eebef8["EmailDisabledAttributesTestCase"]
  b8eeb77a_628d_0cf7_3055_29d4041e74be --> 3904d5f7_fa5d_aea1_ab42_b06c25eebef8
  style b8eeb77a_628d_0cf7_3055_29d4041e74be fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import JumpingCursorTestCase from './JumpingCursorTestCase';
import EmailEnabledAttributesTestCase from './EmailEnabledAttributesTestCase';
import EmailDisabledAttributesTestCase from './EmailDisabledAttributesTestCase';

const React = window.React;

function EmailInputs() {
  return (
    <FixtureSet title="Email inputs">
      <TestCase
        title="Spaces in email inputs"
        description={`
          Some browsers are trying to remove spaces from email inputs and after
          doing this place cursor to the beginning.
        `}
        affectedBrowsers="Chrome">
        <TestCase.Steps>
          <li>Type space and character</li>
          <li>Type character, space, character, delete last character</li>
        </TestCase.Steps>

        <TestCase.ExpectedResult>Cursor not moving.</TestCase.ExpectedResult>

        <JumpingCursorTestCase />
      </TestCase>

      <TestCase
        title="Attributes enabled"
        description={`
          Test enabled pattern, maxlength, multiple attributes.
        `}>
        <TestCase.Steps>
          <li>Type after existing text ',b@tt.com'</li>
          <li>Try to type spaces after typed text</li>
        </TestCase.Steps>

        <TestCase.ExpectedResult>
          Spaces not added. When cursor hovered over input, popup "Please match
          the requested format." is showed.
        </TestCase.ExpectedResult>

        <EmailEnabledAttributesTestCase />
      </TestCase>

      <TestCase
        title="Attributes disabled"
        description={`
          Test disabled maxlength, multiple attributes.
        `}>
        <TestCase.Steps>
          <li>Type after existing text ',b@tt.com'</li>
          <li>Try to type spaces after typed text</li>
        </TestCase.Steps>

        <TestCase.ExpectedResult>
          Spaces are added freely. When cursor hovered over input, popup "A part
          following '@' should not contain the symbol ','." is showed.
        </TestCase.ExpectedResult>

        <EmailDisabledAttributesTestCase />
      </TestCase>
    </FixtureSet>
  );
}

export default EmailInputs;

Domain

Subdomains

Functions

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 BabelCompiler domain, Entrypoint subdomain.
What functions are defined in index.js?
index.js defines 1 function(s): EmailInputs.
What does index.js depend on?
index.js imports 9 module(s): EmailDisabledAttributesTestCase, EmailDisabledAttributesTestCase.js, EmailEnabledAttributesTestCase.js, FixtureSet, FixtureSet.js, JumpingCursorTestCase, JumpingCursorTestCase.js, TestCase, and 1 more.
Where is index.js in the architecture?
index.js is located at fixtures/dom/src/components/fixtures/email-inputs/index.js (domain: BabelCompiler, subdomain: Entrypoint, directory: fixtures/dom/src/components/fixtures/email-inputs).

Analyze Your Own Codebase

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

Try Supermodel Free