Skip to content

Commit

Permalink
update fleet integration test
Browse files Browse the repository at this point in the history
without any trusted app entries, it should see the trusted empty page
  • Loading branch information
ashokaditya committed Apr 20, 2022
1 parent fbaa8c7 commit 534efeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
it('should show the Trusted Apps page when link is clicked', async () => {
await (await fleetIntegrations.findIntegrationDetailCustomTab()).click();
await (await testSubjects.find('trustedApps-artifactsLink')).click();
await trustedApps.ensureIsOnTrustedAppsListPage();
await trustedApps.ensureIsOnTrustedAppsEmptyPage();
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export function TrustedAppsPageProvider({ getService, getPageObjects }: FtrProvi
await testSubjects.existOrFail('trustedAppsListPage-list');
},

async ensureIsOnTrustedAppsEmptyPage() {
await testSubjects.existOrFail('trustedAppsListPage-emptyState');
},

/**
* Returns the Back button displayed on the Trusted Apps list page when page is loaded
* with route state that triggers return button to be displayed
Expand Down

0 comments on commit 534efeb

Please sign in to comment.