Skip to content

Commit c7773ff

Browse files
fix: bump timeout for apply stdout logs validation in regression tests (#5525)
* bump timeout for apply stdout logs validation * wait for deploy to finish before continuing * f * f
1 parent 547efcc commit c7773ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e/playwright/regression/shared/version-history.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ export const validateInitialPreflightsSkipped = async (page: Page, expect: Expec
4646
};
4747

4848
export const validateCurrentDeployLogs = async (page: Page, expect: Expect) => {
49+
// First, ensure the current deployment has completed before checking logs
4950
const currentVersionCard = page.getByTestId("current-version-card");
51+
await expect(currentVersionCard).toContainText('Currently deployed version', { timeout: 45000 });
52+
5053
await currentVersionCard.getByTestId("current-deploy-logs-icon").click();
5154

5255
const deployLogsModal = page.getByTestId("deploy-logs-modal");
@@ -61,7 +64,7 @@ export const validateCurrentDeployLogs = async (page: Page, expect: Expect) => {
6164
await deployLogsModal.getByTestId("logs-tab-applyStdout").click();
6265
const editor = deployLogsModal.getByTestId("deploy-logs-modal-editor");
6366
await expect(editor).toBeVisible();
64-
await expect(editor).toContainText(/created|configured|unchanged/);
67+
await expect(editor).toContainText(/created|configured|unchanged/, { timeout: 10000 }); // 10 seconds timeout for deploy logs to load
6568

6669
await deployLogsModal.getByRole("button", { name: "Ok, got it!" }).click();
6770
await expect(deployLogsModal).not.toBeVisible();

0 commit comments

Comments
 (0)