Skip to content

Commit

Permalink
[ML] Docs screenshots - log out after suite is done (#139562)
Browse files Browse the repository at this point in the history
This PR adds a logout after the ML docs screenshot creation suite.
  • Loading branch information
pheyos authored Aug 29, 2022
1 parent 51039fa commit 93e157d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/test/screenshot_creation/apps/ml_docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ export const ECOMMERCE_INDEX_PATTERN = 'kibana_sample_data_ecommerce';
export const FLIGHTS_INDEX_PATTERN = 'kibana_sample_data_flights';
export const LOGS_INDEX_PATTERN = 'kibana_sample_data_logs';

export default function ({ getService, loadTestFile }: FtrProviderContext) {
export default function ({ getPageObject, getService, loadTestFile }: FtrProviderContext) {
const browser = getService('browser');
const ml = getService('ml');
const securityPage = getPageObject('security');

describe('machine learning docs', function () {
this.tags(['ml']);
Expand All @@ -25,6 +26,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
});

after(async () => {
await securityPage.forceLogout();
await ml.testResources.removeAllKibanaSampleData();
await ml.testResources.resetKibanaTimeZone();
});
Expand Down

0 comments on commit 93e157d

Please sign in to comment.