Fix reporting test (#95586) (#95600)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
liza-mae 2021-03-29 11:02:56 -06:00 committed by GitHub
parent 3a5f4b787c
commit 4d6eeb9e7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,15 +54,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
spaces.forEach(({ space, basePath }) => {
describe('generate report space ' + space, () => {
before(async () => {
usage = (await usageAPI.getUsageStats()) as UsageStats;
completedReportCount = reportingAPI.getCompletedReportCount(usage);
});
beforeEach(async () => {
await PageObjects.common.navigateToActualUrl('home', '/tutorial_directory/sampleData', {
basePath,
});
await PageObjects.header.waitUntilLoadingHasFinished();
usage = (await usageAPI.getUsageStats()) as UsageStats;
completedReportCount = reportingAPI.getCompletedReportCount(usage);
});
reportingTests.forEach(({ name, type, link }) => {
it('name ' + name + ' type ' + type, async () => {