vatsrahul1001 commented on code in PR #59633:
URL: https://github.com/apache/airflow/pull/59633#discussion_r2657243559
##########
airflow-core/src/airflow/ui/tests/e2e/specs/backfill.spec.ts:
##########
@@ -29,6 +29,68 @@ const getPastDate = (daysAgo: number): string => {
return date.toISOString().slice(0, 16);
};
+// Backfills E2E Tests
+
+test.describe("Backfill creation", () => {
+ let backfillPage: BackfillPage;
+ const testDagId = testConfig.testDag.id;
+
+ test.beforeEach(({ page }) => {
+ test.setTimeout(90_000);
+ backfillPage = new BackfillPage(page);
+ });
+
+ test("verify date range selection (start date, end date)", async () => {
+ const fromDate = getPastDate(1);
+ const toDate = getPastDate(7);
+
+ await backfillPage.navigateToDagDetail(testDagId);
+ await backfillPage.openBackfillDialog();
+ await backfillPage.backfillFromDateInput.fill(fromDate);
+ await backfillPage.backfillToDateInput.fill(toDate);
+ await expect(backfillPage.backfillDateError).toBeVisible();
+ });
+
+ test("Should create backfill with 'all runs' behavior", async () => {
+ const createdFromDate = getPastDate(10);
+ const createdToDate = getPastDate(5);
+
+ await backfillPage.createBackfill(testDagId, {
+ fromDate: createdFromDate,
+ reprocessBehavior: "All Runs",
+ toDate: createdToDate,
+ });
+
+ await backfillPage.navigateToBackfillsTab(testDagId);
+ });
+
+ test("Should create backfill with 'Missing Runs' behavior", async () => {
Review Comment:
Let's keep test name consistent
`Verify backfill with "Missing Runs" behavior`
--
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]