Skip to content

Commit

Permalink
create ingest pipeline for the tested model
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrtj committed Oct 24, 2024
1 parent fb3ff93 commit 673d955
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x-pack/test/accessibility/apps/group2/ml_trained_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@ export default function ({ getService }: FtrProviderContext) {
const a11y = getService('a11y');
const ml = getService('ml');

const testModelId = 'lang_ident_model_1';

describe('machine learning trained models page Accessibility', function () {
before(async () => {
await ml.securityCommon.createMlRoles();
await ml.securityCommon.createMlUsers();
await ml.api.createIngestPipeline(testModelId);
await ml.securityUI.loginAsMlPowerUser();
await ml.navigation.navigateToMl();
await ml.navigation.navigateToTrainedModels();
});

after(async () => {
await ml.api.deleteIngestPipeline(testModelId);

await ml.securityCommon.cleanMlUsers();
await ml.securityCommon.cleanMlRoles();
await ml.securityUI.logout();
Expand All @@ -31,7 +36,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('trained model details', async () => {
await ml.trainedModelsTable.ensureRowIsExpanded('lang_ident_model_1');
await ml.trainedModelsTable.ensureRowIsExpanded(testModelId);
await a11y.testAppSnapshot();

await ml.testExecution.logTestStep('Assert the Details tab content');
Expand Down

0 comments on commit 673d955

Please sign in to comment.