Skip to content

Failing test: Jest Tests.x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout - When on the package policy create page Submit page Without query param should show modal if agent policy has agents #196469

Description

A test failed on a tracked branch

Error: Unable to find an element with the text: This action will update 1 agent. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body
  style="padding-bottom: 0px;"
>
  <div>
    <div
      css="You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."
      data-test-subj="kbnRedirectAppLink"
    >
      <div
        class="sc-dcJsrY oOuvk"
      >
        <div
          class="sc-gEvEer krRUVh"
          data-test-subj="createPackagePolicy_header"
        >
          <div
            class="sc-eqUAAy bopkZt"
          >
            <div
              class="euiFlexGroup css-ylztl4-euiFlexGroup-responsive-l-flexStart-center-row"
            >
              <div
                class="euiFlexItem css-9sbomz-euiFlexItem-grow-1"
              >
                <div
                  class="euiFlexGroup css-843hwv-euiFlexGroup-s-flexStart-flexStart-column"
                >
                  <div
                    class="euiFlexItem css-9sbomz-euiFlexItem-grow-1"
                  >
                    <a
                      class="euiButtonEmpty css-yhttm1-euiButtonDisplay-euiButtonEmpty-xs-empty-primary-flush-left"
                      data-test-subj="createPackagePolicy_cancelBackLink"
                      href="/mock/app/integrations/detail/nginx-1.3.0/overview"
                      rel="noreferrer"
                    >
                      <span
                        class="euiButtonEmpty__content css-cf8eum-euiButtonDisplayContent"
                      >
                        <span
                          color="inherit"
                          data-euiicon-type="arrowLeft"
                        />
                        <span
                          class="eui-textTruncate euiButtonEmpty__text"
                        >
                          Cancel
                        </span>
                      </span>
                    </a>
                  </div>
                  <div
                    class="euiFlexItem css-9sbomz-euiFlexItem-grow-1"
                  >
                    <div
                      class="euiFlexGroup css-f1e4n2-euiFlexGroup-responsive-m-flexStart-center-row"
                    >
                      <div
                        class="euiFlexItem css-kpsrin-euiFlexItem-growZero"
                      >
                        <span
                          class="sc-aXZVg KvJvL"
                          data-euiicon-type="package"
                          loading="lazy"
                        />
                      </div>
                      <div
                        class="euiFlexItem css-9sbomz-euiFlexItem-grow-1"
                      >
                        <div
                          class="euiText css-1py2xv4-euiText-m"
                        >
                          <h1
                            data-test-subj="createPackagePolicy_pageTitle"
                          >
                            Add Nginx integration
                          </h1>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div
                    class="euiFlexItem css-9sbomz-euiFlexItem-grow-1"
                  >
                    <div
                      class="euiSpacer euiSpacer--s css-78drzl-euiSpacer-s"
                    />
                    <div
                      class="euiText css-6o5696-euiText-s-euiTextColor-subdued"
                    >
                      Configure an integration for the selected agent policy.
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div
              class="euiFlexGroup css-1drqwgc-euiFlexGroup-responsive-l-flexStart-stretch-row"
            >
              <div
                class="euiFlexItem css-9sbomz-euiFlexItem-grow-1"
              >
                <div
                  class="euiTabs sc-fqkvVR gWHnVG css-rj96u1-euiTabs-m-bottomBorder"
                  role="tablist"
                />
              </div>
            </div>
          </div>
        </div>
        <div
          class="euiPage sc-iGgWBj eigQlj css-f5bpro-euiPage-row-grow-restrictWidth"
          data-test-subj="createPackagePolicy_page"
          style="max-width: 800px;"
        >
          <div
            class="euiPageBody css-1xx3jm8-euiPageBody"
          >
            <div
              class="sc-gsFSXq klvFlN"
            >
              <div
                class="euiSpacer euiSpacer--m css-jv9za2-euiSpacer-m"
              />
              <div
                class="euiSteps sc-dCFHLb bPEyOs"
              >
                <div
                  class="euiStep css-1lp96wd-euiStep-s"
                  data-test-subj="dataCollectionSetupStep"
                >
                  <div
                    class="euiStep__titleWrapper css-3at4h9-euiStep__titleWrapper"
                  >
                    <span
                      class="euiStepNumber css-sf9iw8-euiStepNumber-s"
                    >
                      <span
                        class...
    at waitForWrapper (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729039860999931928/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/wait-for.js:187:27)
    at Object.<anonymous> (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729039860999931928/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.test.tsx:590:22)

First failure: kibana-on-merge - main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Team:FleetTeam label for Observability Data Collection Fleet teamfailed-testA test failure on a tracked branch, potentially flaky-test

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions