Skip to content

Commit

Permalink
Add test subj + pageObject for endpoint custom datasource configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Jun 14, 2020
1 parent f25fdc6 commit 3c59c79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const ConfigureEndpointDatasource = memo<CustomConfigureDatasourceContent

return (
<EuiEmptyPrompt
data-test-subj={`endpointDatasourceConfig_${from === 'edit' ? 'edit' : 'create'}`}
body={
<EuiText>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,14 @@ export function EndpointPolicyPageProvider({ getService, getPageObjects }: FtrPr
await testSubjects.waitForEnabled('headerCreateNewPolicyButton');
return await testSubjects.find('headerCreateNewPolicyButton');
},

/**
* Used when looking a the Ingest create/edit datasource pages. Finds the endpoint
* custom configuaration component
* @param onEditPage
*/
async findDatasourceEndpointCustomConfiguration(onEditPage: boolean = false) {
return await testSubjects.find(`endpointDatasourceConfig_${onEditPage ? 'edit' : 'create'}`);
},
};
}

0 comments on commit 3c59c79

Please sign in to comment.