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: 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

Closed
kibanamachine opened this issue Oct 16, 2024 · 8 comments · Fixed by #196806 or #199477
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 16, 2024

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

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Oct 16, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 16, 2024
@kibanamachine kibanamachine added the Team:Fleet Team label for Observability Data Collection Fleet team label Oct 16, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 16, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@mistic
Copy link
Member

mistic commented Oct 17, 2024

Skipped.

main: 613a1eb

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Oct 18, 2024
## Summary

Unskip flaky tests

Couldn't reproduce the failure in a few runs, the flaky test runner
doesn't support running Jest tests.

Closes elastic#196463
Closes elastic#196464
Closes elastic#196465
Closes elastic#196466
Closes elastic#196467
Closes elastic#196468
Closes elastic#196469

Closes elastic#192798
Closes elastic#189004

(cherry picked from commit d2ee407)
@kibanamachine kibanamachine reopened this Oct 21, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@mistic
Copy link
Member

mistic commented Oct 22, 2024

Skipped.

main: 1d738b8
8.x: c624b1e

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.16

kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 8, 2024
## Summary

Enabling flaky create package policy test, fixing failures

Closes elastic#196463
Closes elastic#196464
Closes elastic#196465
Closes elastic#196466
Closes elastic#196467
Closes elastic#196468
Closes elastic#196469

(cherry picked from commit 3dfe062)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
4 participants