Skip to content

Feat: add E2E tests for backfill pause and stop controls#59705

Closed
KyeongJooni wants to merge 9 commits intoapache:mainfrom
KyeongJooni:e2e/backfill-pause-stop
Closed

Feat: add E2E tests for backfill pause and stop controls#59705
KyeongJooni wants to merge 9 commits intoapache:mainfrom
KyeongJooni:e2e/backfill-pause-stop

Conversation

@KyeongJooni
Copy link
Contributor

Add UI E2E tests for backfill pause, resume, and cancel controls

This PR adds end-to-end tests to verify the backfill control functionality on the DAG detail page.

What this tests:

  • Pausing a running backfill and verifying status changes to paused
  • Resuming a paused backfill and verifying status returns to running
  • Cancelling an active backfill and verifying status changes to cancelled
  • Verifying that cancelled backfills cannot be resumed

Implementation:

  • Created BackfillPage page object following existing POM pattern
  • Added test suite backfill-controls.spec.ts with 3 test cases
  • All tests follow the same structure as existing E2E tests (dags-list.spec.ts)

closes: #59594


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg
Copy link

boring-cyborg bot commented Dec 22, 2025

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Dec 22, 2025
@KyeongJooni KyeongJooni changed the title feat: add E2E tests for backfill pause and stop controls Feat: add E2E tests for backfill pause and stop controls Dec 22, 2025
Copy link
Member

@choo121600 choo121600 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@choo121600
Copy link
Member

Also, it looks like a rebase may be needed with reference to #59692.

Add Playwright E2E tests to verify pause, resume, and cancel
functionality for backfills on the DAG detail page.

- Create BackfillPage page object for backfill interactions
- Add tests for pause/resume workflow
- Add tests for cancel workflow
- Verify cancelled backfills cannot be resumed

Closes apache#59594
@KyeongJooni KyeongJooni force-pushed the e2e/backfill-pause-stop branch from 9f37abc to c0f9769 Compare December 22, 2025 14:17
Remove redundant login calls from tests as authentication
is now handled globally via global-setup.ts
@KyeongJooni
Copy link
Contributor Author

@choo121600 Thank you for the review!

Both items have been addressed:

Ready for CI review. Please let me know if anything else is needed.

@choo121600
Copy link
Member

Ready for CI review. Please let me know if anything else is needed.

Have you checked whether this test runs locally?
It seems like the test is failing.

Copy link
Member

@choo121600 choo121600 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should be able to find the backfill radio button like this.

KyeongJooni and others added 5 commits December 23, 2025 13:57
Add Playwright E2E tests to verify pause, resume, and cancel
functionality for backfills on the DAG detail page.

- Create BackfillPage page object for backfill interactions
- Add tests for pause/resume workflow
- Add tests for cancel workflow
- Verify cancelled backfills cannot be resumed

Closes apache#59594
Remove redundant login calls from tests as authentication
is now handled globally via global-setup.ts
- Update trigger button locator to match DagsPage
- Apply reviewer suggestion for backfill radio locator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI E2E || DAG-013: Pause & Stop backfill

2 participants