Skip to content

Commit

Permalink
monitoring tests a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Jun 14, 2022
1 parent 3e5789a commit 5f75909
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/test/accessibility/apps/stack_monitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

it('Kibana Instances Page', async function () {
await kibanaOverview.clickOnInstancesTab();
await kibanaInstances.isOnInstances();
await kibanaOverview.isOnOverview();
await kibanaOverview.clickInstanceTab();
await a11y.testAppSnapshot();
});
});
Expand Down
5 changes: 5 additions & 0 deletions x-pack/test/functional/services/monitoring/kibana_overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ export function MonitoringKibanaOverviewProvider({ getService }) {
const retry = getService('retry');

const SUBJ_OVERVIEW_PAGE = 'kibanaOverviewPage';
const SUBJ_KBN_INSTANCES = 'kibanaInstancesPage';

return new (class KibanaOverview {
async isOnOverview() {
const pageId = await retry.try(() => testSubjects.find(SUBJ_OVERVIEW_PAGE));
return pageId !== null;
}

async clickInstanceTab() {
return testSubjects.click(SUBJ_KBN_INSTANCES);
}
})();
}

0 comments on commit 5f75909

Please sign in to comment.