Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Functional tests - stabilize and re-enable export jobs tests #152334

Merged
merged 10 commits into from
May 3, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await testSubjects.existOrFail('csvDownloadStarted'); // validate toast panel
};

// Failing: See https://github.com/elastic/kibana/issues/150561
// Failing: See https://github.com/elastic/kibana/issues/150562
// Failing: See https://github.com/elastic/kibana/issues/148314
// Failing: See https://github.com/elastic/kibana/issues/150563
// Failing: See https://github.com/elastic/kibana/issues/150561
describe.skip('Download CSV', () => {
describe('Download CSV', () => {
before('initialize tests', async () => {
log.debug('ReportingPage:initTests');
await browser.setWindowSize(1600, 850);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ export default function ({ getService }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const ml = getService('ml');

// Failing: See https://github.com/elastic/kibana/issues/150557
describe.skip('export jobs', function () {
describe('export jobs', function () {
this.tags(['ml']);

before(async () => {
await ml.api.cleanMlIndices();
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote');
Expand Down Expand Up @@ -282,6 +282,7 @@ export default function ({ getService }: FtrProviderContext) {
await ml.navigation.navigateToStackManagement();
await ml.navigation.navigateToStackManagementJobsListPage();
});

after(async () => {
await ml.api.cleanMlIndices();
ml.stackManagementJobs.deleteExportedFiles([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export function MachineLearningStackManagementJobsProvider({

async getDownload(filePath: string) {
return retry.tryForTime(5000, async () => {
expect(fs.existsSync(filePath)).to.be(true);
expect(fs.existsSync(filePath)).to.eql(true, `File path ${filePath} should exist`);
return fs.readFileSync(filePath).toString();
});
},
Expand Down