Skip to content

Commit

Permalink
[Security Solution] Fix policy details test (#100260)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog authored May 18, 2021
1 parent 7369a48 commit 79c94d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const policyTestResources = getService('policyTestResources');

// Failing: See https://github.com/elastic/kibana/issues/100236
describe.skip('When on the Endpoint Policy Details Page', function () {
describe('When on the Endpoint Policy Details Page', function () {
describe('with an invalid policy id', () => {
it('should display an error', async () => {
await pageObjects.policy.navigateToPolicyDetails('invalid-id');
Expand Down Expand Up @@ -637,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 79c94d3

Please sign in to comment.