Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export class HITLReviewDrawer {
this.root = page.getByRole("dialog", { name: "Required Actions" });
}

public async expectOpenWith(dagId: string): Promise<void> {
public async expectOpenWith(expectedText: string): Promise<void> {
await expect(this.root).toBeVisible();
await expect(this.root).toContainText(dagId);
await expect(this.root).toContainText(expectedText);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export class HITLReviewModal {
this.root = page.getByRole("dialog", { name: "Required Actions" });
}

public async expectOpenWith(dagId: string): Promise<void> {
public async expectOpenWith(expectedText: string): Promise<void> {
await expect(this.root).toBeVisible();
await expect(this.root).toContainText(dagId, { timeout: 60_000 });
await expect(this.root).toContainText(expectedText);
}
}
2 changes: 1 addition & 1 deletion airflow-core/src/airflow/ui/tests/e2e/utils/api/hitl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export async function setupPendingHITLFlowViaAPI(source: RequestLike, dagId: str
const response = await request.patch(`${baseUrl}/api/v2/dags/${dagId}`, { data: { is_paused: false } });

if (!response.ok()) {
throw new Error(`HITL response failed (${response.status()})`);
throw new Error(`Failed to unpause Dag ${dagId} (${response.status()})`);
}

const { dagRunId } = await apiTriggerDagRun(request, dagId);
Expand Down
Loading