shashbha14 opened a new pull request, #60632:
URL: https://github.com/apache/airflow/pull/60632

   Implements E2E tests for the Variables page as part of the UI E2E Test 
Scenarios meta issue.
   This PR adds comprehensive end-to-end tests for the `/variables` page using 
Playwright, following the Page Object Model (POM) pattern established in PR 
#58548.
   ## Changes Made
   ### 1. E2E Test Infrastructure
   - **Playwright Configuration** 
([playwright.config.ts](cci:7://file:///c:/Users/ishwet/airflow/airflow/ui/playwright.config.ts:0:0-0:0))
 - Multi-browser test setup
   - **Test Configuration** 
([testConfig.ts](cci:7://file:///c:/Users/ishwet/airflow/airflow/ui/tests/e2e/testConfig.ts:0:0-0:0))
 - Environment variables and settings
   - **Git Ignore** 
([.gitignore](cci:7://file:///c:/Users/ishwet/airflow/airflow/ui/.gitignore:0:0-0:0))
 - Exclude Playwright test artifacts
   ### 2. Page Object Models
   - **BasePage** - Common page interaction methods
   - **LoginPage** - Authentication handling
   - **VariablesPage** - Comprehensive Variables page interactions with 20+ 
methods
   ### 3. Test Specifications
   - **variables.spec.ts** - 15 comprehensive test cases
   - Complete test coverage for all Variables page features
   - Automated test data creation and cleanup
   ### 4. Documentation
   - **README.md** - Complete guide for running and writing E2E tests
   - Includes setup instructions, troubleshooting, and examples
   ## Test Coverage
   ✅ Variables list display  
   ✅ Create variable (encrypted and non-encrypted)  
   ✅ Edit variable  
   ✅ Delete variable (single and bulk)  
   ✅ Search variables (exact and wildcard patterns)  
   ✅ Import variables from JSON file  
   ✅ Pagination navigation  
   ✅ Column sorting (key, value, description)  
   ## Testing Approach
   - **Framework**: Playwright v1.48.2
   - **Pattern**: Page Object Model (POM)
   - **Browsers**: Chromium, Firefox, WebKit
   - **Test Data**: Auto-generated with timestamps, cleaned up in `afterAll`
   - **No hardcoded values**: Uses `testConfig` and dynamic data
   ## How to Run
   ```bash
   cd airflow/ui
   pnpm install
   pnpm exec playwright install
   pnpm test:e2e
   


-- 
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]

Reply via email to