Skip to content

Commit

Permalink
[Security Solution] Fix policy details test (elastic#100260)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog committed May 18, 2021
1 parent 62601d2 commit ef9c1ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
policyInfo.agentPolicy.id,
policyInfo.packagePolicy.id
);
await testSubjects.existOrFail('endpointIntegrationPolicyForm');
});
afterEach(async () => {
if (policyInfo) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ export function IngestManagerCreatePackagePolicy({

async setPackagePolicyDescription(desc: string) {
await this.scrollToCenterOfWindow('packagePolicyDescriptionInput');
await testSubjects.setValue('packagePolicyDescriptionInput', desc);
const packagePolicyDescriptionInput = await testSubjects.find(
'packagePolicyDescriptionInput'
);
await packagePolicyDescriptionInput.clearValueWithKeyboard();
await packagePolicyDescriptionInput.type(desc);
},

/**
Expand Down

0 comments on commit ef9c1ec

Please sign in to comment.