Skip to content

Commit

Permalink
[8.x] [Fleet] fix create package policy test (#199477) (#199507)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Fleet] fix create package policy test
(#199477)](#199477)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Bardi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-08T15:53:36Z","message":"[Fleet]
fix create package policy test (#199477)\n\n## Summary\r\n\r\nEnabling
flaky create package policy test, fixing failures\r\n\r\nCloses
https://github.com/elastic/kibana/issues/196463\r\nCloses
https://github.com/elastic/kibana/issues/196464\r\nCloses
https://github.com/elastic/kibana/issues/196465\r\nCloses
https://github.com/elastic/kibana/issues/196466\r\nCloses
https://github.com/elastic/kibana/issues/196467\r\nCloses
https://github.com/elastic/kibana/issues/196468\r\nCloses
https://github.com/elastic/kibana/issues/196469","sha":"3dfe062cae698cfbf202b812acd96d2176866cce","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor"],"title":"[Fleet]
fix create package policy
test","number":199477,"url":"https://github.com/elastic/kibana/pull/199477","mergeCommit":{"message":"[Fleet]
fix create package policy test (#199477)\n\n## Summary\r\n\r\nEnabling
flaky create package policy test, fixing failures\r\n\r\nCloses
https://github.com/elastic/kibana/issues/196463\r\nCloses
https://github.com/elastic/kibana/issues/196464\r\nCloses
https://github.com/elastic/kibana/issues/196465\r\nCloses
https://github.com/elastic/kibana/issues/196466\r\nCloses
https://github.com/elastic/kibana/issues/196467\r\nCloses
https://github.com/elastic/kibana/issues/196468\r\nCloses
https://github.com/elastic/kibana/issues/196469","sha":"3dfe062cae698cfbf202b812acd96d2176866cce"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199477","number":199477,"mergeCommit":{"message":"[Fleet]
fix create package policy test (#199477)\n\n## Summary\r\n\r\nEnabling
flaky create package policy test, fixing failures\r\n\r\nCloses
https://github.com/elastic/kibana/issues/196463\r\nCloses
https://github.com/elastic/kibana/issues/196464\r\nCloses
https://github.com/elastic/kibana/issues/196465\r\nCloses
https://github.com/elastic/kibana/issues/196466\r\nCloses
https://github.com/elastic/kibana/issues/196467\r\nCloses
https://github.com/elastic/kibana/issues/196468\r\nCloses
https://github.com/elastic/kibana/issues/196469","sha":"3dfe062cae698cfbf202b812acd96d2176866cce"}}]}]
BACKPORT-->

---------

Co-authored-by: Julia Bardi <[email protected]>
Co-authored-by: Julia Bardi <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2024
1 parent 5504690 commit 06580e9
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,7 @@ afterAll(() => {
consoleDebugMock.mockRestore();
});

// FLAKY: https://github.com/elastic/kibana/issues/196463
// FLAKY: https://github.com/elastic/kibana/issues/196464
// FLAKY: https://github.com/elastic/kibana/issues/196465
// FLAKY: https://github.com/elastic/kibana/issues/196466
// FLAKY: https://github.com/elastic/kibana/issues/196467
// FLAKY: https://github.com/elastic/kibana/issues/196468
// FLAKY: https://github.com/elastic/kibana/issues/196469
describe.skip('When on the package policy create page', () => {
describe('When on the package policy create page', () => {
afterEach(() => {
jest.clearAllMocks();
});
Expand Down Expand Up @@ -868,7 +861,7 @@ describe.skip('When on the package policy create page', () => {

test('should create agentless agent policy and package policy when in cloud and agentless API url is set', async () => {
fireEvent.click(renderResult.getByTestId(SETUP_TECHNOLOGY_SELECTOR_TEST_SUBJ));
fireEvent.click(renderResult.getByText('Agentless'));
fireEvent.click(renderResult.getAllByText('Agentless')[0]);
await act(async () => {
fireEvent.click(renderResult.getByText(/Save and continue/).closest('button')!);
});
Expand Down

0 comments on commit 06580e9

Please sign in to comment.