vbottu opened a new pull request, #59678:
URL: https://github.com/apache/airflow/pull/59678
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
## What this PR does
Adds E2E tests for the dashboard/home page to verify metrics display
correctly.
### Changes
**New files:**
- `tests/e2e/pages/HomePage.ts` - Page object for dashboard elements
- `tests/e2e/specs/home-dashboard.spec.ts` - E2E test specs
### Tests added
1. `should display dashboard stats section with DAG metrics` - Verifies
active, running, and failed DAG counts
2. `should display health status badges` - Verifies metadatabase, scheduler,
and triggerer health
3. `should navigate to filtered DAGs list when clicking stats cards` -
Verifies card click navigation
4. `should display welcome heading on dashboard` - Verifies basic dashboard
load
5. `should refresh and display updated metrics on page reload` - Verifies
metrics persist after reload
6. `should display historical metrics section with recent runs` - Verifies
DAG runs and task instances
7. `should handle DAG import errors display when errors exist` - Verifies
import errors behavior
### Testing
All 7 tests pass locally on Chromium.
closes: #59306
<!-- Please keep an empty line above the dashes. -->
---
--
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]