apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
36.87k stars 14.25k forks source link

AIP-38 Add some ids for external tools / integration tests #43381

Open pierrejeambrun opened 2 days ago

pierrejeambrun commented 2 days ago

Body

Currently the new UI does not contain any identifier in the DOM to allow external tools (plugins/integration tests framework) to find and manipulates element. Targeting via sibling and child selectors is not reliable.

Some of the major components should have an identifier, we could think of:

This should be done for existing code, but a strategy should be in place to know when and how we should add such identifiers during development time.-

Committer

pierrejeambrun commented 2 days ago

cc: @vatsrahul1001

bbovenzi commented 2 days ago

@vatsrahul1001 Can you tell me more about where and how we should tag elements for your testing? We should probably put in more data-testids too that we can easily use for unit tests as well.