From e4960480d6b4f282129d1d44d4c0bdeff1c6184f Mon Sep 17 00:00:00 2001 From: Conner Nilsen Date: Tue, 25 Jul 2023 08:36:15 -0700 Subject: [PATCH] Update frontend snapshot tests to fix Github failing tests (#95) Summary: Pull Request resolved: https://github.com/facebook/sapp/pull/95 The previous diff in the stack fixed import errors that blocked any tests from running in Github CI. This diff fixes the frontend tests that began failing after the import errors were fixed. Differential Revision: D47758887 fbshipit-source-id: c3ff6052cca15754f6e273d58f435eef6506aa4c --- .../src/__snapshots__/Issues.test.js.snap | 733 ++++++++++++------ .../src/__snapshots__/Runs.test.js.snap | 101 +-- .../src/__snapshots__/Traces.test.js.snap | 303 ++++---- 3 files changed, 708 insertions(+), 429 deletions(-) diff --git a/sapp/ui/frontend/src/__snapshots__/Issues.test.js.snap b/sapp/ui/frontend/src/__snapshots__/Issues.test.js.snap index 73c0e34e..4e8bed52 100644 --- a/sapp/ui/frontend/src/__snapshots__/Issues.test.js.snap +++ b/sapp/ui/frontend/src/__snapshots__/Issues.test.js.snap @@ -2,7 +2,7 @@ exports[`Renders issues and filters 1`] = ` Array [ -
- - - Runs - - - / - - - - - Run - 0 - - - / - - -
, +
    +
  1. + + Runs + + + / + +
  2. +
  3. + + Run + 0 + + + / + +
  4. +
+ ,
@@ -171,6 +173,7 @@ Array [ > +
  • - + Filter options
    -
  • - + Recent filters +
    +
    +
    + + + + + + + + + + + +
    +
    +
  • , @@ -418,7 +558,7 @@ Array [ exports[`Renders issues and filters 2`] = ` Array [ -
    - - - Runs - - - / - - - - - Run - 0 - - - / - - -
    , +
      +
    1. + + Runs + + + / + +
    2. +
    3. + + Run + 0 + + + / + +
    4. +
    + ,
    @@ -489,7 +631,6 @@ Array [ >
      - + - + + + + +
    • - + Filter options
      -
    • - + Recent filters +
      +
      +
      + + + + + + + + + + + +
      +
      +
    , diff --git a/sapp/ui/frontend/src/__snapshots__/Runs.test.js.snap b/sapp/ui/frontend/src/__snapshots__/Runs.test.js.snap index 76479ff5..cbfa1a84 100644 --- a/sapp/ui/frontend/src/__snapshots__/Runs.test.js.snap +++ b/sapp/ui/frontend/src/__snapshots__/Runs.test.js.snap @@ -2,7 +2,7 @@ exports[`Renders runs 1`] = ` Array [ -
    - - - Runs - - - / - - -
    , +
      +
    1. + + Runs + + + / + +
    2. +
    + ,
    - - Runs - - - / - - -
    , +
      +
    1. + + Runs + + + / + +
    2. +
    + ,
    - - Runs - - - / - - - - - Run - 0 - - - / - - - - - Issue - - - - / - - -
    , +
      +
    1. + + Runs + + + / + +
    2. +
    3. + + Run + 0 + + + / + +
    4. +
    5. + + Issue + + + + / + +
    6. +
    + ,
    @@ -309,7 +311,7 @@ Array [ exports[`Renders traces 2`] = ` Array [ -
    - - - Runs - - - / - - - - - Run - 0 - - - / - - - - - Issue - 1 - - - / - - -
    , +
      +
    1. + + Runs + + + / + +
    2. +
    3. + + Run + 0 + + + / + +
    4. +
    5. + + Issue + 1 + + + / + +
    6. +
    + ,
    @@ -383,7 +387,6 @@ Array [ >
    Traces @@ -1403,7 +1406,7 @@ Array [ Object { "cursor": "not-allowed", "display": "inline-block", - "width": null, + "width": undefined, } } > @@ -1425,7 +1428,6 @@ Array [ > - No file found for tests.js - - +
    + No file found for tests.js +
    +
    @@ -1718,7 +1718,7 @@ Expected variables: {"path":"tests.js"} className="ant-typography" style={ Object { - "WebkitLineClamp": null, + "WebkitLineClamp": undefined, } } > @@ -1734,7 +1734,6 @@ Expected variables: {"path":"tests.js"} > Traces @@ -1831,7 +1831,7 @@ Expected variables: {"path":"tests.js"} Object { "cursor": "not-allowed", "display": "inline-block", - "width": null, + "width": undefined, } } > @@ -1853,7 +1853,6 @@ Expected variables: {"path":"tests.js"} >