Skip to content

Commit c07eaa4

Browse files
committed
fix(e2e): ensure catalog sources are enabled before testSourceEnableDisable runs
1 parent 91e2742 commit c07eaa4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/cypress/cypress/tests/e2e/modelCatalog/testSourceEnableDisable.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
waitForModelCatalogCards,
88
waitForModelCatalogAfterDisable,
99
enableModelCatalogSource,
10+
ensureModelCatalogSourceEnabled,
1011
} from '../../../utils/oc_commands/modelCatalog';
1112
import { retryableBefore } from '../../../utils/retryableHooks';
1213
import type { ModelCatalogSourceTestData } from '../../../types';
@@ -19,6 +20,10 @@ describe('[product bug: RHOAIENG-53704] Verify Model Catalog Source Enable/Disab
1920
.fixture('e2e/modelCatalog/testSourceEnableDisable.yaml', 'utf8')
2021
.then((yamlContent: string) => {
2122
testData = yaml.load(yamlContent) as ModelCatalogSourceTestData;
23+
})
24+
.then(() => {
25+
ensureModelCatalogSourceEnabled(testData.redhatAiSourceId);
26+
ensureModelCatalogSourceEnabled(testData.redhatAiSourceId2);
2227
});
2328
});
2429

0 commit comments

Comments
 (0)