Skip to content

Commit

Permalink
adjust pageobject to ensure that we clear value
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog committed May 18, 2021
1 parent c724883 commit 13a1888
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const policyTestResources = getService('policyTestResources');

// Failing: See https://github.com/elastic/kibana/issues/100236
describe('When on the Endpoint Policy Details Page', function () {
describe('with an invalid policy id', () => {
it('should display an error', async () => {
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 13a1888

Please sign in to comment.