diff --git a/tests/playwright/src/ai-lab-extension.spec.ts b/tests/playwright/src/ai-lab-extension.spec.ts index c2c09d544..aa431d5bc 100644 --- a/tests/playwright/src/ai-lab-extension.spec.ts +++ b/tests/playwright/src/ai-lab-extension.spec.ts @@ -86,13 +86,13 @@ describe(`AI Lab extension installation and verification`, async () => { recipesCatalogPage = await aiLabPage.navigationBar.openRecipesCatalog(); await recipesCatalogPage.waitForLoad(); }); - test(`Install ChatBot example app`, { timeout: 780_000 }, async () => { + test(`Install ChatBot example app`, { timeout: 1_560_000 }, async () => { const chatBotApp: AILabAppDetailsPage = await recipesCatalogPage.openRecipesCatalogApp( recipesCatalogPage.recipesCatalogNaturalLanguageProcessing, AI_LAB_AI_APP_NAME, ); await chatBotApp.waitForLoad(); - await chatBotApp.startNewDeployment(); + await chatBotApp.startNewDeployment(1_500_000); }); }); }); diff --git a/tests/playwright/src/model/ai-lab-app-details-page.ts b/tests/playwright/src/model/ai-lab-app-details-page.ts index 24099b578..7c6e1a81e 100644 --- a/tests/playwright/src/model/ai-lab-app-details-page.ts +++ b/tests/playwright/src/model/ai-lab-app-details-page.ts @@ -39,12 +39,12 @@ export class AILabAppDetailsPage extends AILabBasePage { throw new Error('Method Not implemented'); } - async startNewDeployment(): Promise { + async startNewDeployment(timeout: number = 720_000): Promise { await playExpect(this.startRecipeButton).toBeEnabled(); await this.startRecipeButton.click(); const starRecipePage: AILabStartRecipePage = new AILabStartRecipePage(this.page, this.webview); await starRecipePage.waitForLoad(); - await starRecipePage.startRecipe(); + await starRecipePage.startRecipe(timeout); } async openRunningApps(): Promise { diff --git a/tests/playwright/src/model/ai-lab-start-recipe-page.ts b/tests/playwright/src/model/ai-lab-start-recipe-page.ts index 813276532..816febb99 100644 --- a/tests/playwright/src/model/ai-lab-start-recipe-page.ts +++ b/tests/playwright/src/model/ai-lab-start-recipe-page.ts @@ -41,7 +41,7 @@ export class AILabStartRecipePage extends AILabBasePage { await playExpect(this.heading).toBeVisible(); } - async startRecipe(): Promise { + async startRecipe(timeout: number = 720_000): Promise { await playExpect(this.startRecipeButton).toBeEnabled(); await this.startRecipeButton.click(); try { @@ -49,6 +49,6 @@ export class AILabStartRecipePage extends AILabBasePage { } catch (error) { console.warn(`Warning: Could not reset the app, repository probably clean.\n\t${error}`); } - await playExpect(this.recipeStatus).toContainText('AI App is running', { timeout: 720_000 }); + await playExpect(this.recipeStatus).toContainText('AI App is running', { timeout: timeout }); } }