iharsh02 commented on code in PR #59633:
URL: https://github.com/apache/airflow/pull/59633#discussion_r2657511117
##########
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:
done
##########
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 () => {
+ const createdFromDate = getPastDate(45);
+ const createdToDate = getPastDate(30);
+
+ await backfillPage.createBackfill(testDagId, {
+ fromDate: createdFromDate,
+ reprocessBehavior: "Missing Runs",
+ toDate: createdToDate,
+ });
+
+ await backfillPage.navigateToBackfillsTab(testDagId);
+ });
+
+ test("Should create backfill with 'Missing and Errored runs' behavior",
async () => {
Review Comment:
done
--
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]