Skip to content

Commit

Permalink
fix a11y test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Dec 16, 2021
1 parent 3b66c8c commit a3eb105
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions x-pack/test/accessibility/apps/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const reporting = getService('reporting');
const security = getService('security');
const log = getService('log');

describe('Reporting', () => {
const createReportingUser = async () => {
Expand All @@ -40,19 +41,25 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

beforeEach(async () => {
await reporting.generateCsv({
title: 'CSV Report',
browserTimezone: 'UTC',
objectType: 'search',
version: '7.15.0',
searchSource: {
version: true,
query: { query: '', language: 'kuery' },
index: '5193f870-d861-11e9-a311-0fa548c5f953',
fields: ['*'],
filter: [],
// Add one report
const { body } = await reporting.generateCsv(
{
title: 'CSV Report',
browserTimezone: 'UTC',
objectType: 'search',
version: '7.15.0',
searchSource: {
version: true,
query: { query: '', language: 'kuery' },
index: '5193f870-d861-11e9-a311-0fa548c5f953',
fields: ['*'],
},
},
});
reporting.REPORTING_USER_USERNAME,
reporting.REPORTING_USER_PASSWORD
);

log.info(`Queued report job: ${body.path}`);

await retry.waitFor('Reporting app', async () => {
await common.navigateToApp('reporting');
Expand Down

0 comments on commit a3eb105

Please sign in to comment.