This is an automated email from the ASF dual-hosted git repository.

rahulvats pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0b18161d50c Fix flaky DagRuns E2E test race condition in markRunAs 
(#63890)
0b18161d50c is described below

commit 0b18161d50c9d6c9b4ad6d26f04ea9ca86ae0483
Author: Yeonguk Choo <[email protected]>
AuthorDate: Thu Mar 19 13:56:02 2026 +0900

    Fix flaky DagRuns E2E test race condition in markRunAs (#63890)
---
 airflow-core/src/airflow/ui/tests/e2e/pages/DagRunsTabPage.ts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/airflow-core/src/airflow/ui/tests/e2e/pages/DagRunsTabPage.ts 
b/airflow-core/src/airflow/ui/tests/e2e/pages/DagRunsTabPage.ts
index cccdb394366..e11eb229999 100644
--- a/airflow-core/src/airflow/ui/tests/e2e/pages/DagRunsTabPage.ts
+++ b/airflow-core/src/airflow/ui/tests/e2e/pages/DagRunsTabPage.ts
@@ -87,6 +87,13 @@ export class DagRunsTabPage extends BasePage {
     const stateOption = this.page.getByTestId(`mark-run-as-${state}`);
 
     await expect(stateOption).toBeVisible({ timeout: 5000 });
+
+    if (await stateOption.isDisabled()) {
+      await this.page.keyboard.press("Escape");
+
+      return;
+    }
+
     await stateOption.click();
 
     const confirmButton = this.page.getByRole("button", { name: "Confirm" });

Reply via email to