DSingh0304 opened a new pull request, #3242:
URL: https://github.com/apache/apisix-dashboard/pull/3242

   This pull request introduces comprehensive end-to-end (E2E) test coverage 
for the Consumers feature, including tests for CRUD operations with both 
required and all fields, pagination, and UI navigation. It also adds a new Page 
Object Model (POM) utility for Consumers and a helper function to bulk-delete 
consumers for test setup and teardown.
   
   **E2E Test Coverage for Consumers:**
   
   * Added a new Page Object Model utility `consumersPom` in 
`e2e/pom/consumers.ts` to encapsulate navigation, assertions, and element 
locators for the Consumers pages, improving test readability and 
maintainability.
   * Implemented E2E tests for CRUD operations with all fields 
(`consumers.crud-all-fields.spec.ts`) and required fields only 
(`consumers.crud-required-fields.spec.ts`), verifying form validation, 
navigation, editing, and deletion workflows. 
[[1]](diffhunk://#diff-0eb0411309706ce965194d15c88eba09a9ce2edc12cefac4ada92ce65d522f97R1-R145)
 
[[2]](diffhunk://#diff-5230009ec59928c4c813eea549302eb874ed0dc47eec0fb46513a667355c8788R1-R127)
   * Added a pagination and UI component verification test for the Consumers 
list page (`consumers.list.spec.ts`), including bulk creation and deletion of 
consumers for robust pagination testing.
   
   **Test Utilities and API Helpers:**
   
   * Introduced a new helper function `deleteAllConsumers` in 
`src/apis/consumers.ts` to efficiently remove all consumers, supporting test 
setup and cleanup.
   * Updated API imports in `src/apis/consumers.ts` to include pagination 
constants for use in the new helper function.
   
   Closes #3084 


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