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

Failing test: X-Pack Jest Tests.x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view - when on the hosts page when there is a selected host in the url when showing host Policy Response panel should show a numbered badge if at least one action has a warning #69572

Closed
kibanamachine opened this issue Jun 18, 2020 · 7 comments
Assignees
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test skipped-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.9.0 v8.0.0

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

Error: Unable to find an element by: [data-test-subj="hostDetailsPolicyResponseAttentionBadge"]

<body
  class="euiBody--hasFlyout"
>
  <div>
    <div
      class="euiPage sc-AxhCb bLcfLa endpoint--isListView"
      data-test-subj="hostPage"
    >
      <main
        class="euiPageBody"
      >
        <div
          class="euiPageHeader euiPageHeader--responsive endpoint-header"
        >
          <div
            class="euiPageHeaderSection"
            data-test-subj="pageViewHeaderLeft"
          >
            <h1
              class="euiTitle euiTitle--large"
              data-test-subj="pageViewHeaderLeftTitle"
            >
              Endpoints
            </h1>
          </div>
        </div>
        <div
          class="euiTabs endpoint-navTabs"
          role="tablist"
        >
          <a
            aria-selected="false"
            class="euiTab"
            href="#/management/endpoints"
            rel="noreferrer"
            role="tab"
          >
            <span
              class="euiTab__content"
            >
              Endpoints
            </span>
          </a>
          <a
            aria-selected="false"
            class="euiTab"
            href="#/management/policy"
            rel="noreferrer"
            role="tab"
          >
            <span
              class="euiTab__content"
            >
              Policies
            </span>
          </a>
        </div>
        <div
          class="euiPanel euiPanel--paddingLarge euiPageContent endpoint-page-content"
        >
          <div
            class="euiPageContentBody"
            data-test-subj="pageViewBodyContent"
          >
            <div>
              <div
                data-focus-guard="true"
                style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
                tabindex="0"
              />
              <div
                data-focus-guard="true"
                style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
                tabindex="1"
              />
              <div
                data-focus-lock-disabled="false"
              >
                <div
                  class="euiFlyout euiFlyout--small"
                  data-test-subj="hostDetailsFlyout"
                  role="dialog"
                  tabindex="0"
                >
                  <button
                    aria-label="Close this dialog"
                    class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton"
                    data-test-subj="euiFlyoutCloseButton"
                    type="button"
                  >
                    <div
                      aria-hidden="true"
                      class="euiButtonIcon__icon"
                      data-euiicon-type="cross"
                    />
                  </button>
                  <div
                    class="euiFlyoutHeader euiFlyoutHeader--hasBorder"
                  >
                    <h2
                      class="euiTitle euiTitle--small"
                      data-test-subj="hostDetailsFlyoutTitle"
                    >
                      <span
                        class="euiLoadingContent"
                      >
                        <span
                          class="euiLoadingContent__singleLine"
                        >
                          <span
                            class="euiLoadingContent__singleLineBackground"
                          />
                        </span>
                      </span>
                    </h2>
                  </div>
                  <div
                    class="euiFlyoutHeader sc-fzqARJ kUzzyd hasButtons"
                    data-test-subj="hostDetailsPolicyResponseFlyoutHeader"
                  >
                    <div
                      class="buttons"
                    >
                      <a
                        class="euiButtonEmpty euiButtonEmpty--primary euiButtonEmpty--xSmall flyoutSubHeaderBackButton"
                        data-test-subj="flyoutSubHeaderBackButton"
                        href="#/management/endpoints?page_index=0&page_size=10&selected_host=1"
                        rel="noreferrer"
                      >
                        <span
                          class="euiButtonEmpty__content back-button-content"
                        >
                          <div
                            aria-hidden="true"
                            class="euiButtonEmpty__icon"
                            data-euiicon-type="arrowLeft"
                          />
                          <span
                            class="euiButtonEmpty__text back-button-content-text"
                          >
                            Endpoint Details
                          </span>
                        </span>
                      </a>
                    </div>
                    <div
                      class...
    at getElementError (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:22:10)
    at args (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:76:13)
    at /dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:86:105
    at onMutation (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/wait-for-element.js:46:24)
    at Promise (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/wait-for-element.js:62:5)
    at new Promise (<anonymous>)
    at waitForElement (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/wait-for-element.js:22:10)
    at asyncWrapper (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/wait-for-element.js:67:54)
    at /dev/shm/workspace/kibana/node_modules/@testing-library/react/dist/pure.js:51:22
    at batchedUpdates$1 (/dev/shm/workspace/kibana/node_modules/react-dom/cjs/react-dom.development.js:24386:12)
    at act (/dev/shm/workspace/kibana/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1092:14)
    at asyncAct (/dev/shm/workspace/kibana/node_modules/@testing-library/react/dist/act-compat.js:118:12)
    at Object.asyncWrapper (/dev/shm/workspace/kibana/node_modules/@testing-library/react/dist/pure.js:50:35)
    at waitForElementWrapper (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/wait-for-element.js:67:35)
    at findAllByTestId (/dev/shm/workspace/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:86:98)
    at Object.it (/dev/shm/workspace/kibana/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx:479:51)

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Jun 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-test-triage (failed-test)

@jbudz
Copy link
Member

jbudz commented Jun 18, 2020

#69560

skip: bdb6592
7.x: 5a5684d

@tylersmalley tylersmalley added the Team:Fleet Team label for Observability Data Collection Fleet team label Jul 7, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-management (Team:Endpoint Management)

@kevinlog kevinlog removed the Team:Fleet Team label for Observability Data Collection Fleet team label Jul 7, 2020
@kevinlog kevinlog self-assigned this Jul 7, 2020
@kevinlog
Copy link
Contributor

kevinlog commented Jul 7, 2020

@paul-tavares we knew that this was flakey a bit ago - did we ever fix it?

@paul-tavares
Copy link
Contributor

@tylersmalley did this happen again yesterday?

@kevinlog yes, I think the fix for this was #69591

@kevinlog
Copy link
Contributor

kevinlog commented Oct 1, 2020

test has been running for a bit, closing

@kevinlog kevinlog closed this as completed Oct 1, 2020
@MindyRS MindyRS added Team:Defend Workflows “EDR Workflows” sub-team of Security Solution and removed Team:Endpoint Management labels Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test skipped-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.9.0 v8.0.0
Projects
None yet
Development

No branches or pull requests

7 participants