mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
[Security Solution][Endpoint] add a few delays to one of the FTR Policy tests that integrates with Fleet (#119304)
This commit is contained in:
parent
60ae6f9f05
commit
5e63db9724
1 changed files with 4 additions and 0 deletions
|
@ -540,12 +540,16 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
// Fleet has its own form inputs, like description. When those are updated, the changes
|
// Fleet has its own form inputs, like description. When those are updated, the changes
|
||||||
// are also dispatched to the embedded endpoint Policy form. Update to the Endpoint Policy
|
// are also dispatched to the embedded endpoint Policy form. Update to the Endpoint Policy
|
||||||
// form after that should preserve the changes done on the Fleet form
|
// form after that should preserve the changes done on the Fleet form
|
||||||
|
// NOTE: A few delays were added below due to sporadic failures of this test case (see #100236)
|
||||||
|
const sleep = (ms = 100) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||||
|
|
||||||
// Wait for the endpoint form to load and then update the policy description
|
// Wait for the endpoint form to load and then update the policy description
|
||||||
await testSubjects.existOrFail('endpointIntegrationPolicyForm');
|
await testSubjects.existOrFail('endpointIntegrationPolicyForm');
|
||||||
|
await sleep(); // Allow forms to sync
|
||||||
await pageObjects.ingestManagerCreatePackagePolicy.setPackagePolicyDescription(
|
await pageObjects.ingestManagerCreatePackagePolicy.setPackagePolicyDescription(
|
||||||
'protect everything'
|
'protect everything'
|
||||||
);
|
);
|
||||||
|
await sleep(); // Allow forms to sync
|
||||||
|
|
||||||
const winDnsEventingCheckbox = await testSubjects.find('policyWindowsEvent_dns');
|
const winDnsEventingCheckbox = await testSubjects.find('policyWindowsEvent_dns');
|
||||||
await pageObjects.ingestManagerCreatePackagePolicy.scrollToCenterOfWindow(
|
await pageObjects.ingestManagerCreatePackagePolicy.scrollToCenterOfWindow(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue