Skip to content

Commit

Permalink
chore(test): testing increased deploy timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Dancs <[email protected]>
  • Loading branch information
ScrewTSW committed Aug 26, 2024
1 parent 59ef588 commit c6ad015
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/playwright/src/ai-lab-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
});
Expand Down
4 changes: 2 additions & 2 deletions tests/playwright/src/model/ai-lab-app-details-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export class AILabAppDetailsPage extends AILabBasePage {
throw new Error('Method Not implemented');
}

async startNewDeployment(): Promise<void> {
async startNewDeployment(timeout: number = 720_000): Promise<void> {
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<void> {
Expand Down
4 changes: 2 additions & 2 deletions tests/playwright/src/model/ai-lab-start-recipe-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ export class AILabStartRecipePage extends AILabBasePage {
await playExpect(this.heading).toBeVisible();
}

async startRecipe(): Promise<void> {
async startRecipe(timeout: number = 720_000): Promise<void> {
await playExpect(this.startRecipeButton).toBeEnabled();
await this.startRecipeButton.click();
try {
await handleConfirmationDialog(this.page, 'Podman AI Lab', true, 'Reset');
} 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 });
}
}

0 comments on commit c6ad015

Please sign in to comment.