Test(UI): Add E2E tests for Asset Details#59939
Conversation
|
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)
|
|
@vatsrahul1001 Please have a look on this PR, I have tested it well with breeze testing and prek. If need any changes, let me know! |
@junaiddshaukat Thanks for the PR. I will review it soon. |
|
@junaiddshaukat Thanks for the PR! A few things to address:
Let me know if you have questions! |
|
@vatsrahul1001, Thanks for review. I am working on it will update soon |
|
@junaiddshaukat #59990 has been merged. Let's rebase and reuse that |
Sure, I will rebase and resue that and fix this PR. Will update you on it soon. thanks |
This adds Page Object and specs for verifying the Asset Details page, covering producing tasks and consuming DAGs validation. Signed-off-by: junaiddshaukat <[email protected]>
- Rename AssetsPage to AssetDetailPage for clarity (coordinates with apache#59990) - Add beforeAll to trigger asset_produces_1 DAG before tests - Fix fragile selectors (use parent container + ARIA roles) - Refactor duplicate code into verifyStatSection helper - Remove unused assetsTable locator - Rename test to remove 'should' prefix - Change describe name to 'Asset Details Page'
e2e4374 to
cfa9014
Compare
|
Hi @vatsrahul1001, thanks for the detailed review! I've addressed all your feedback: Changes Made:
Tests pass locally on Chromium and WebKit. Ready for re-review! Please have a look and if need any furthur changes let me know! |
@junaiddshaukat Thanks I will review soon |
Thanks @junaiddshaukat great work here. I see we have created a new spec page for asset, however we already have existing asset spec page I suggest you to add your test in same spec file and reuse the code |
- Add asset.name to testConfig in playwright.config.ts - Merge asset detail test into existing asset.spec.ts (reuse beforeAll) - Use testConfig.asset.name instead of hardcoded values - Remove duplicate assets.spec.ts file
|
Hi @vatsrahul1001, thanks for the feedback! I've made the requested changes:
The Ready for re-review! |
|
Great work @junaiddshaukat, good to be merged |
Add E2E tests for Asset Details Signed-off-by: junaiddshaukat <[email protected]> Co-authored-by: Rahul Vats <[email protected]>
Add E2E tests for Asset Details Signed-off-by: junaiddshaukat <[email protected]> Co-authored-by: Rahul Vats <[email protected]>
Add E2E tests for Asset Details Signed-off-by: junaiddshaukat <[email protected]> Co-authored-by: Rahul Vats <[email protected]>
Add E2E tests for Asset Details Signed-off-by: junaiddshaukat <[email protected]> Co-authored-by: Rahul Vats <[email protected]>
Add E2E tests for Asset Details Signed-off-by: junaiddshaukat <[email protected]> Co-authored-by: Rahul Vats <[email protected]>
This adds Page Object and specs for verifying the Asset Details page, covering producing tasks and consuming DAGs validation.
This PR adds Playwright UI E2E coverage for the Asset Details page.
Adds a page object (AssetsPage) for navigating Assets and asserting details/dependencies.
Adds an E2E spec verifying an asset’s details include producing tasks and scheduled DAGs.
closes: #59930
^ 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.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.