Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: [TERR-425] React Component Code Coverage and Error Validation #49

Merged

Commits on Aug 23, 2024

  1. TERR-425

    - added VS code workspace extension to gitignore
    - added jest.config
    - updated yarn.lock
    - added dev dependencies for @testling-library/react and supporting libs
    - added setupTests (for Enzyme)
    - added export of CustomTextAreaSettings interface in CustomTextArea module
    - added CustomTextArea spec file
    sanchezelton committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    82dc327 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. TERR-425

    - added non default prop settings for .eslintrc
    - added transformIgnorePatterns for rxjs to jest.config
    - added test:react script for package.json
    - removed already extended include prop for tsconfig
    - updated yarn lock file
    - fixed bad path to jest-setup.js in setupFilesAfterEnv prop in jest.config
    - added missing props onPointerEnter/LeaveCapture on
    use of TextArea Grafana React component with
    onPointerCapture callback for CustomTextArea component
    - refactored import of render from @testing-library/react in CustomTextArea spec
    - refactored expect call on CustomTextArea spec test case
    to use jest expect.not.toBeUndefined
    sanchezelton committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    8c8b9ba View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - removed unneeded type for str unescape fn parameter  in CustomTextArea
    sanchezelton committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    3bb3e9f View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main' of github.com:esnet/grafana-esnet-networkmap-pane…

    …l into test/TERR-425-react-component-code-coverage
    sanchezelton committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    0e2f65c View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. TERR-425

    - updated docker-compose for mitmproxy deployment
    - updated jest.config to better align with Grafana panel
    plugin jest.config scaffolding
    - updated Makefile for E2E testing, mitmproxy support and
    container spin up sleep timing
    - updated package.json to better align with Grafana panel
    plugin scaffolding, rollback to react 17, align types for react
    and react-dom, added RTL
    - updated yarn lock to reduce installed versions of react to one
    - reporting and worker count now dependent on CI in
    playwright.config
    - tsconfing updated to allow for import and module
    resolution when in ts-node context (for react testing)
    - updated testing in auth.setup to support versions 9 and
    10 or later of Grafana
    - updated config.info to create URLs based on input
    e2econfig flow sheets
    - e2econfig updated to included flow sheets in google
    sheets
    - updated folderDashboardInit to fix dashboard setup and utilize mock panels and dashboard
    - updated mock panel json
    - networkMapPanel json updated to use infinity datasource
    - plugin-def added to include interfaces
    - plugin.spec added include test cases for end-to-end,
    including updates with changes in sidebar for remote URLs
    - interfaces added for DataSource, Fixtures, HostPost,
    PanelParams, Threshold, Toplogy, ToplogyNode,
    TopologyEdge
    - untyped waitForEvent HOC added
    - added basic color matcher object module
    - fix for MapPanel.resolveNodeThresholds to skip
    layerThreshold computation when nodeThresholds are not
    an array
    - added useConfigurationUrl boolean prop in MapOptions, along with IColumn and IFlowSheet interfaces
    - removed unneedede onPointer*Capture prop usage and
    callbacks for TextArea instance in CustomTextArea
    - removed setting of text attributes in esmap since D3.js
    strips non-SVG conforming attributes out
    - added removeRepeats fn in test/utils module
    - fixed imports for RTL screen and render in CustomTextArpea.spec
    sanchezelton committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    48e151e View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - update CI docks for E2E testing upon push and pull_request
    - updated development docs to specify Node 18.x as
    requirement for building
    sanchezelton committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    71ea9df View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. TERR-425

    - removed watch mode from jest react test invocation from package.json
    - updated playwright.config to run split off of edge coloration tests in seperate module for speed up of parallel execution
    - split tests into main plugin.spec module and
    edgeColoration.spec module
    - renamed parent folder for untypedFn module to util
    - added fixtures module to avoid repeeated invocations of
    fixture instatiation code
    - moved common url related fn for tests into util/urlHelpers
    module
    - added check on thresholds in MapPanel to allow for non-array values like null or undefined to bypass forEach invocation
    - removed unused suffix input param prop in
    CustomTextArea component
    - added @ts-ignore flags to minimize TS type error noise
    from CustomTextArea components in tests due to bad React 17 FC and VFC signatures WRT to children.
    sanchezelton committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    3732b20 View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - removed unneeded comments
    sanchezelton committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ebf04d5 View commit details
    Browse the repository at this point in the history
  3. TERR-425

    - removed parent entries to node and edges in index.html
    - added react testing to make test:component script
    sanchezelton committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    3e1564f View commit details
    Browse the repository at this point in the history
  4. TERR-425

    - readded parent entries to node and edges in index.html
    sanchezelton committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4c703ab View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. TERR-425

    - added react testing to make target teest
    - corrected check on
    options.layers[layer].nodeThresholds.steps
    prior to invoking forEach in MapPanel.resolveNodeThresholds
    - corrected code formatting in CustomTextArea component
    - added fireEvent.blur after firiing change event to trigger callback
    sanchezelton committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    5d34191 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. TERR-425

    - added sourceMap prop to tsconfig
    - added doInsert, doDelete fn to support fixing of direct edit issues
    - added test stub for "invokes the onChange
    callback without transforming the argument's
    symbols into HTML entities upon the keyDown
    event" into CustomTextArea.spec
    sanchezelton committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    3148359 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' of github.com:esnet/grafana-esnet-networkmap-pane…

    …l into test/TERR-425-react-component-code-coverage
    sanchezelton committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    21eb3f2 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. TERR-425

    - updated @types/react and @types/react-dom packages to target latest release of ver 17 of each
    - updated lock file
    - remaining keyDown test WIP
    - updated CustomTextArea to be a controlled component, using state to define
    - initial validation logic added to CustomTextArea, but no reporting of result to UI at present.
    sanchezelton committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    4d4eab5 View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - type checks on validationFailedMsg in validateMapJsonStr fn.
    sanchezelton committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    d1708fb View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. TERR-425

    - removed test for onKeyDown
    sanchezelton committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    2fbb4e1 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. TERR-425

    - removed unneeded userEvent import from CustomTextArea spec
    - added styling for JSON validation error
    messages for coloration and reduced size of
    error message text
    - added import of styling to CustomTextArea
    component
    - added wrapper to nested TextArea
    component in CustomTextArea render and
    error message div
    sanchezelton committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    1a428f6 View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - removed unneeded output via console.log
    sanchezelton committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    3546b48 View commit details
    Browse the repository at this point in the history
  3. TERR-425

    - increased timeout for edgeColoration.spec to 120s
    sanchezelton committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    780a74e View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. TERR-425

    - updated development documentation
    - removed commented code in
    edgeColoration.spec and plugin.spec
    - fixed prop for INetworkMapPanel to be a Partial
    - added check on options.layers to confirm
    presence of array, creating one if not present
    in
    folderDashboardInit.getFolderDashboardTargets
    sanchezelton committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    3bfa8af View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - rennamed folderDashboardInit fn
    getFolderDashboardTargets to
    getFolderDashboardFixtures to agree with
    returned type
    - fixed references to above
    sanchezelton committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    a0556bf View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Merge branch 'end-to-end-tests' of github.com:esnet/grafana-esnet-net…

    …workmap-panel into test/TERR-425-react-component-code-coverage
    sanchezelton committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ccffeb1 View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - added jsdoc for edgeColoration.spec getThresholds helper fn
    sanchezelton committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3d2a422 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. TERR-425

    - updated README to use default value of
    "names" in place of "pops" for endpoint
    identifier
    - updated demonstration dashboard.json for above change
    - updated networkMapPanel.json to align endpointId changes in initial layers
    - updated module.spec commented test for alignment when the component test is fixed.
    sanchezelton committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    20cd87f View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. TERR-425

    - removed duplicate entry to git ignore .code-workspace
    - restored includes line in tsconfig.json
    - removed useConfigurationlUrl prop in MapOptions interface and usage in mock.panel.json
    sanchezelton committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    1a80636 View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - reverted package.json and yarn.lock to end-to-end-tests revision
    sanchezelton committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    4d4a244 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. TERR-425

    - reverted following packages to versions in
    target branch for e2e:
    @types/react
    @types/react-dom
    @grafana/tsconfig
    sanchezelton committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    80263d5 View commit details
    Browse the repository at this point in the history
  2. TERR-425

    - reverted yarn.lock to revision from main branch
    sanchezelton committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    baeca0f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2024

  1. Configuration menu
    Copy the full SHA
    5bc7e9d View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. Configuration menu
    Copy the full SHA
    3057b0e View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Configuration menu
    Copy the full SHA
    656b875 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c9b974 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b1ea0c8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f012b09 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2abb8c7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e39fc4f View commit details
    Browse the repository at this point in the history
  7. fix relative path

    jkafader-esnet committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    cc4368f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    64f8a8c View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Configuration menu
    Copy the full SHA
    e08d8fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9eb183d View commit details
    Browse the repository at this point in the history
  3. remove jest tests

    jkafader-esnet committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    20e04b0 View commit details
    Browse the repository at this point in the history
  4. revert to main

    jkafader-esnet committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    70f1a26 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cbc0792 View commit details
    Browse the repository at this point in the history