Skip to content

[Devin] Automate DOT-TC-3676: Catalog Screen - List/Grid View Toggle - Switch to List View#684

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1767180126-automate-DOT-TC-3676
Open

[Devin] Automate DOT-TC-3676: Catalog Screen - List/Grid View Toggle - Switch to List View#684
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1767180126-automate-DOT-TC-3676

Conversation

@devin-ai-integration
Copy link
Contributor

[Devin] Automate DOT-TC-3676: Catalog Screen - List/Grid View Toggle - Switch to List View

Summary

Automates test case DOT-TC-3676 which verifies the List/Grid view toggle functionality in the Catalog Preview screen. The test logs in as a distributor, navigates to Catalog, opens Catalog Preview (which displays in Grid view), clicks "Switch to List View", and verifies that the List view displays correctly with all expected columns (Item Code, Item Name, Category, Unit, Price, Status).

Changes follow the 3-tier POM architecture:

  • CatalogPage.java: Added 10 new locators for List/Grid view elements and 12 new methods for interacting with and verifying the toggle functionality
  • Catalog.java: Added 12 wrapper methods in the function layer
  • VerifyCatalogListGridViewToggleSwitchToListViewTest.java: New test class implementing the DOT-TC-3676 test flow

Review & Testing Checklist for Human

  • Run the test locally against UAT environment to verify it passes end-to-end: mvn test -Dtest=VerifyCatalogListGridViewToggleSwitchToListViewTest -Drun.headless=true -Dtest.env=uat
  • Verify XPaths are correct - especially //a[contains(text(),'Edit Item')] for Grid view detection (this is an indirect check)
  • Confirm column headers match - verify List view actually shows columns: Item Code, Item Name, Category, Unit, Price, Status
  • Check test flow alignment - confirm the navigation path (Catalog → Preview → Grid View → Toggle → List View) matches DOT-TC-3676 requirements

Recommended test plan: Run the test in non-headless mode (-Drun.headless=false) to visually observe the flow and confirm each step executes correctly.

Notes

  • Test case details were retrieved from AIO TCMS API before implementation
  • Manual UI verification was performed to identify correct XPaths
  • Code compiles successfully but automated test was not executed against the live UI

Link to Devin run: https://app.devin.ai/sessions/b2fb830667ae4ee686e909cd20c3224a
Requested by: viranga@cutanddry.com

…- Switch to List View

- Retrieved test case details from AIO TCMS API (MANDATORY step)
- Performed manual UI verification to identify correct XPaths
- Added locators for List/Grid view toggle functionality in CatalogPage.java
- Added wrapper methods in Catalog.java function class
- Created test class following exact flow from API and manual verification
- Test verifies: Grid view display, List view toggle, column visibility (Item Code, Item Name, Category, Unit, Price, Status)

Co-Authored-By: viranga@cutanddry.com <viranga@cutanddry.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants