elastic / kibana

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

Failing test: Jest Tests.x-pack/plugins/security_solution/public/management/components/artifact_list_page/components - When displaying the Delete artfifact modal in the Artifact List Page should show success toast if deleted successfully #135796

Open kibanamachine opened 2 years ago

kibanamachine commented 2 years ago

A test failed on a tracked branch

TestingLibraryElementError: Unable to find an element by: [data-test-subj="testPage-deleteModal-cancelButton"]

Ignored nodes: comments, <script />, <style />
<body
  class=""
>
  <div>
    <div
      data-test-subj="testPage-container"
    >
      <header
        class="euiPageHeader euiPageHeader--bottomBorder euiPageHeader--responsive euiPageHeader--center"
        data-test-subj="testPage-container-header"
      >
        <div
          class="euiPageHeaderContent"
        >
          <div
            class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsFlexStart euiFlexGroup--directionRow euiFlexGroup--responsive euiPageHeaderContent__top"
          >
            <div
              class="euiFlexItem"
            >
              <h1
                class="euiTitle css-1bexacr-euiTitle-l"
              >
                <div
                  class="euiFlexGroup euiFlexGroup--alignItemsFlexStart euiFlexGroup--directionColumn euiFlexGroup--responsive"
                >
                  <div
                    class="euiFlexItem euiFlexItem--flexGrowZero"
                  />
                  <div
                    class="euiFlexItem euiFlexItem--flexGrowZero"
                  >
                    <span
                      class="euiTitle css-1bexacr-euiTitle-l"
                      data-test-subj="header-page-title"
                    >
                      Artifact
                    </span>
                  </div>
                </div>
              </h1>
              <div
                class="euiSpacer euiSpacer--l css-p2o3x6-euiSpacer-l"
              />
              <div
                class="euiText css-j3htvy-euiText-constrainedWidth-m"
              >
                <p>
                  <span
                    data-test-subj="header-panel-subtitle"
                  >
                    A list of artifacts for endpoint
                  </span>
                </p>
              </div>
            </div>
            <div
              class="euiFlexItem euiFlexItem--flexGrowZero"
            >
              <div
                class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--wrap euiPageHeaderContent__rightSideItems"
              >
                <div
                  class="euiFlexItem euiFlexItem--flexGrowZero"
                >
                  <button
                    class="euiButton euiButton--primary euiButton--fill euiButton-isDisabled"
                    data-test-subj="testPage-pageAddButton"
                    disabled=""
                    type="button"
                  >
                    <span
                      class="euiButtonContent euiButton__content"
                    >
                      <span
                        class="euiButtonContent__icon"
                        color="inherit"
                        data-euiicon-type="plusInCircle"
                      />
                      <span
                        class="euiButton__text"
                      >
                        Add artifact
                      </span>
                    </span>
                  </button>
                </div>
              </div>
            </div>
          </div>
        </div>
      </header>
      <div
        class="euiSpacer euiSpacer--l css-p2o3x6-euiSpacer-l"
      />
      <div
        class="euiPanel euiPanel--transparent euiPageContent euiPageContent--borderRadiusNone css-1k1l0tw-euiPanel-grow-none-transparent"
        role="main"
      >
        <div
          class="euiPageContentBody"
        >
          <div
            data-eui="EuiFlyout"
            data-test-subj="testPage-flyout"
            role="dialog"
          >
            <button
              aria-label="Close this dialog"
              data-test-subj="euiFlyoutCloseButton"
              type="button"
            />
            <div
              class="euiFlyoutHeader euiFlyoutHeader--hasBorder"
            >
              <h2
                class="euiTitle css-1w464ad-euiTitle-m"
              >
                Create artifact
              </h2>
            </div>
            <div
              class="euiFlyoutBody"
            >
              <div
                class="euiFlyoutBody__overflow"
                tabindex="0"
              >
                <div
                  class="euiFlyoutBody__overflowContent"
                >
                  <div
                    data-test-subj="formMock"
                  >
                    <div>
                      create form
                    </div>
                    <div>
                      Is Disabled: false
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div
              class="euiFlyoutFooter"
            >
              <div
                class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceBetween euiFlexGroup--directionRow euiFlexGroup--responsive"
              >
                <div
                  class="euiFlexItem euiFlexItem--flexGrowZero"
                >
             ...
    at Object.getElementError (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/config.js:38:19)
    at /var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
    at /var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
    at getByTestId (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
    at Object.<anonymous> (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/public/management/components/artifact_list_page/components/artifact_delete_modal.test.ts:59:33)
    at _callCircusHook (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:175:5)
    at _runTest (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:142:5)
    at _runTestsForDescribeBlock (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:63:9)
    at _runTestsForDescribeBlock (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:57:9)
    at run (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:25:3)
    at runAndTransformResultsToJestFormat (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:176:21)
    at jestAdapter (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:109:19)
    at runTestInternal (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:380:16)
    at runTest (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:472:34)
    at Object.worker (/var/lib/buildkite-agent/builds/kb-n2-4-spot-58854a8c2e9c0424/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/testWorker.js:133:12)

First failure: CI Build - main

elasticmachine commented 2 years ago

Pinging @elastic/security-solution (Team: SecuritySolution)

kibanamachine commented 2 years ago

New failure: CI Build - main

kibanamachine commented 2 years ago

New failure: CI Build - main

kibanamachine commented 2 years ago

New failure: CI Build - main