Fix reporting test (#95586)
This commit is contained in:
parent
b95e5a996a
commit
b7d8ada65a
|
@ -54,15 +54,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
});
|
});
|
||||||
spaces.forEach(({ space, basePath }) => {
|
spaces.forEach(({ space, basePath }) => {
|
||||||
describe('generate report space ' + space, () => {
|
describe('generate report space ' + space, () => {
|
||||||
before(async () => {
|
|
||||||
usage = (await usageAPI.getUsageStats()) as UsageStats;
|
|
||||||
completedReportCount = reportingAPI.getCompletedReportCount(usage);
|
|
||||||
});
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await PageObjects.common.navigateToActualUrl('home', '/tutorial_directory/sampleData', {
|
await PageObjects.common.navigateToActualUrl('home', '/tutorial_directory/sampleData', {
|
||||||
basePath,
|
basePath,
|
||||||
});
|
});
|
||||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||||
|
usage = (await usageAPI.getUsageStats()) as UsageStats;
|
||||||
|
completedReportCount = reportingAPI.getCompletedReportCount(usage);
|
||||||
});
|
});
|
||||||
reportingTests.forEach(({ name, type, link }) => {
|
reportingTests.forEach(({ name, type, link }) => {
|
||||||
it('name ' + name + ' type ' + type, async () => {
|
it('name ' + name + ' type ' + type, async () => {
|
||||||
|
|
Loading…
Reference in a new issue