Skip to content

Commit

Permalink
test(x-pack/test/performance/tests/home.ts): replace perf reporting-d…
Browse files Browse the repository at this point in the history
…ashboard test w/ home page test

Remove reporting-dashboard test from performance tests and add login page and home page tests to get
performance metrics.
  • Loading branch information
Cavit Baturalp Gurdin committed Nov 8, 2021
1 parent f72147e commit d793540
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions x-pack/test/performance/tests/home.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { FtrProviderContext } from '../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'security']);
const testSubjects = getService('testSubjects');
const retry = getService('retry');

describe('Login', () => {
it('login and navigate to homepage', async () => {
await PageObjects.common.navigateToApp('login');

await retry.waitFor('login page visible', () => testSubjects.exists('loginSubmit'));

await PageObjects.security.login();
});
});
}
2 changes: 1 addition & 1 deletion x-pack/test/performance/tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default function ({ loadTestFile }: FtrProviderContext) {
describe('performance', function () {
this.tags('ciGroup8');

loadTestFile(require.resolve('./reporting_dashboard'));
loadTestFile(require.resolve('./home'));
});
}

0 comments on commit d793540

Please sign in to comment.