[Security Solution][Endpoint][Admin][Policy] Fixes the endpoint version test on policy details (#118124) (#118269)

Co-authored-by: Candace Park <56409205+parkiino@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2021-11-10 20:37:54 -05:00 committed by GitHub
parent f776be5e61
commit 427bb03e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,8 +309,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
it('should show the supported Endpoint version', async () => {
const supportedVersion = await testSubjects.find('policySupportedVersions');
expect(supportedVersion).to.be('Agent version ' + popupVersionsMap.get('malware'));
expect(await testSubjects.getVisibleText('policySupportedVersions')).to.equal(
'Agent version ' + popupVersionsMap.get('malware')
);
});
it('should show the custom message text area when the Notify User checkbox is checked', async () => {