choo121600 commented on code in PR #59738:
URL: https://github.com/apache/airflow/pull/59738#discussion_r2690134138


##########
airflow-core/src/airflow/ui/tests/e2e/pages/BackfillPage.ts:
##########
@@ -340,10 +386,20 @@ export class BackfillPage extends BasePage {
     await menuItem.click();
   }
 
-  public async waitForNoActiveBackfill(): Promise<void> {
-    const backfillInProgress = this.page.locator('text="Backfill in 
progress:"');
+  public async waitForNoActiveBackfill(timeout: number = 300_000): 
Promise<void> {
+    const { page } = this;
+    const backfillInProgress = page.locator('text="Backfill in progress:"');
 
-    await expect(backfillInProgress).not.toBeVisible({ timeout: 300_000 });
+    await expect(async () => {
+      await page.reload();
+      await page.waitForLoadState("networkidle", { timeout: 30_000 });

Review Comment:
   Is `networkidle` necessary here?
   
   As far as I know, `networkidle` is generally discouraged since it’s 
timing-based and can be flaky, so it might be worth being cautious about using 
it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to