Skip to content

Conversation

@VedantMadane
Copy link

Summary

This PR adds comprehensive E2E tests for the Pools page (/pools) following the Page Object Model (POM) pattern, addressing issue #60567.

What's Included

PoolsPage.ts (Page Object)

  • Locators for all key UI elements (search bar, add button, pool cards, pagination, dialog forms)
  • Helper methods for CRUD operations (createPool, editPoolSlots, deletePool)
  • Methods for navigation, search, sorting, and pagination
  • Proper waiting utilities for loading states

pools.spec.ts (Test Specifications)

Test coverage includes:

  • Pool List Display: Verify pools page loads with default pool visible
  • CRUD Operations:
    • Create a new pool with name, slots, and description
    • Edit pool slots
    • Delete a pool
    • Verify default_pool cannot be deleted
  • Search: Filter pools by name pattern, clear search
  • Pool Usage Display: Verify slot information displays correctly
  • Sorting: Sort pools A-Z and Z-A
  • Pagination: Navigate through pages when many pools exist

Acceptance Criteria Met

  • ✅ All tests follow Page Object Model (POM) pattern
  • ✅ Tests create/cleanup their own test data in beforeAll/afterAll
  • ✅ No hardcoded values - uses dynamic test data
  • ✅ Tests are designed to work across browsers

Closes #60567

Closes apache#60567

This PR adds comprehensive E2E tests for the Pools page (/pools) using
the Page Object Model (POM) pattern.

## What is covered:
- **Pool List Display**: Verify pools page loads with default pool
- **CRUD Operations**: Create, edit slots, delete pools
- **Search**: Filter pools by name pattern
- **Pool Usage Display**: Verify slot information displays
- **Sorting**: Sort pools by name (A-Z, Z-A)
- **Pagination**: Navigate through pages when many pools exist
- **Default Pool Protection**: Verify default_pool cannot be deleted

## Implementation:
- PoolsPage.ts: Page Object with locators and helper methods
- pools.spec.ts: Test specifications following project conventions

Tests create and cleanup their own test data in beforeAll/afterAll hooks.
@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Jan 15, 2026
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 Test || ADMIN-002: Verify Pools Page functionality

1 participant