elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

Failing test: Jest Tests.x-pack/plugins/cases/public/components/custom_fields/text - Create updates the value correctly #190081

Open kibanamachine opened 1 month ago

kibanamachine commented 1 month ago

A test failed on a tracked branch

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

- Object {
-   "customFields": Object {
-     "test_key_1": "this is a sample text!",
-   },
- }
+ Object {},
- true,
+ false,

Number of calls: 1

Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div>
      <div
        class="euiForm"
      >
        <div
          class="euiFormRow euiFormRow--fullWidth euiFormRow--hasLabel"
          id="generated-id-row"
        >
          <div
            class="euiFormRow__labelWrapper"
          >
            <label
              aria-invalid="true"
              class="euiFormLabel euiFormRow__label euiFormLabel-isInvalid"
              for="generated-id"
              id="generated-id-label"
            >
              My test label 1
            </label>
          </div>
          <div
            class="euiFormRow__fieldWrapper"
          >
            <div
              class="euiFormControlLayout euiFormControlLayout--fullWidth"
            >
              <div
                class="euiFormControlLayout__childrenWrapper"
                style="--euiFormControlRightIconsCount: 1;"
              >
                <input
                  aria-describedby="generated-id-error-0"
                  aria-invalid="true"
                  class="euiFieldText css-4iq2dl-euiFieldText-fullWidth"
                  data-test-subj="test_key_1-text-create-custom-field"
                  id="generated-id"
                  type="text"
                  value="this is a sample text!"
                />
                <div
                  class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right euiFormControlLayoutIcons--absolute"
                >
                  <span
                    color="danger"
                    data-euiicon-type="warning"
                  />
                </div>
              </div>
            </div>
            <div
              aria-live="polite"
              class="euiFormErrorText euiFormRow__text"
              id="generated-id-error-0"
            >
              My test label 1 is required.
            </div>
          </div>
        </div>
        <button
          class="euiButton css-gp0gk9-euiButtonDisplay-m-defaultMinWidth-base-primary"
          data-test-subj="form-test-component-submit-button"
          type="button"
        >
          <span
            class="css-cf8eum-euiButtonDisplayContent"
          >
            <span
              class="eui-textTruncate"
            >
              Submit
            </span>
          </span>
        </button>
      </div>
    </div>
  </body>
</html>...
    at toHaveBeenCalledWith (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1723046608406573063/elastic/kibana-on-merge/kibana/x-pack/plugins/cases/public/components/custom_fields/text/create.test.tsx:111:24)
    at runWithExpensiveErrorDiagnosticsDisabled (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1723046608406573063/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/config.js:52:12)
    at checkCallback (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1723046608406573063/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/wait-for.js:141:77)
    at checkRealTimersCallback (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1723046608406573063/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/wait-for.js:133:16)
    at Timeout.task [as _onTimeout] (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1723046608406573063/elastic/kibana-on-merge/kibana/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
    at listOnTimeout (node:internal/timers:573:17)
    at processTimers (node:internal/timers:514:7)

First failure: kibana-on-merge - main

elasticmachine commented 1 month ago

Pinging @elastic/response-ops (Team:ResponseOps)

kibanamachine commented 2 weeks ago

New failure: kibana-on-merge - main

elasticmachine commented 1 week ago

Pinging @elastic/response-ops-cases (Feature:Cases)