Skip to content

Commit

Permalink
Stabilize inference endpoint svl search tests for MKI (elastic#201492)
Browse files Browse the repository at this point in the history
## Summary

This PR stabilizes the inference endpoint serverless earch UI tests for
MKI runs by waiting for loading to finish after refreshing the page.
  • Loading branch information
pheyos authored Nov 23, 2024
1 parent e020595 commit 9a8ef27
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'svlCommonPage',
'embeddedConsole',
'svlSearchInferenceManagementPage',
'header',
]);
const svlSearchNavigation = getService('svlSearchNavigation');
const browser = getService('browser');
Expand Down Expand Up @@ -66,6 +67,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
beforeEach(async () => {
await ml.api.createInferenceEndpoint(endpoint, taskType, modelConfig);
await browser.refresh();
await pageObjects.header.waitUntilLoadingHasFinished();
});

after(async () => {
Expand Down

0 comments on commit 9a8ef27

Please sign in to comment.