Skip to content

[Devin] Add test for DOT-TC-3617: Verify Order Reference Column Display with ERP Order Badge#679

Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1767162801-dot-tc-3617-order-reference-erp-badge
Open

[Devin] Add test for DOT-TC-3617: Verify Order Reference Column Display with ERP Order Badge#679
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1767162801-dot-tc-3617-order-reference-erp-badge

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Dec 31, 2025

[Devin] Add test for DOT-TC-3617: Verify Order Reference Column Display with ERP Order Badge

Summary

This PR adds automated test coverage for DOT-TC-3617, which verifies the Order Reference column display and ERP Order badge in the Customer Profile Orders Tab.

Changes include:

  • New XPath locators in CustomersPage.java for Order Reference column header, order reference numbers, and ERP Order badge
  • Verification methods in CustomersPage.java and wrapper methods in Customer.java
  • New test class that validates: login, navigation to customer profile, Orders tab display, Order Reference column header visibility, order reference number format (# prefix), and ERP Order badge display

Updates since last revision

  • Updated test to use Wagner Foodservice distributor (164948356 - Cut+Dry Agent - Wagner Foodservice) as requested
  • Changed login flow to use Login.logIntoRestaurant() followed by Login.navigateToDistributorPortal()
  • Updated customer code to 515 (existing Wagner Foodservice customer)

Review & Testing Checklist for Human

  • Verify XPath locators match actual UI - The locators //span[contains(text(),'Order Reference')] and //span[contains(text(),'ERP Order')] were created based on test case description, not visual inspection. Please verify these match the actual UI elements.
  • Verify test data - Customer code "515" for Wagner Foodservice must have existing orders with ERP Order references. Confirm this customer has ERP-synced orders in UAT environment.
  • Run the test manually - Execute mvn test -Dtest=VerifyOrderReferenceColumnDisplayWithErpOrderBadgeTest -Dtest.env=uat to verify the test passes end-to-end.
  • Check ERP Order badge assumption - The test assumes the first order row will have an ERP Order badge. If not all orders are ERP-synced, consider adjusting the test logic.

Notes

…ERP Order Badge

- Add locators for Order Reference column header and ERP Order badge in CustomersPage.java
- Add verification methods in CustomersPage.java for Order Reference and ERP Order badge
- Add wrapper methods in Customer.java function class
- Create test class VerifyOrderReferenceColumnDisplayWithErpOrderBadgeTest.java

Test case steps:
1. Navigate to Customer Profile Orders Tab
2. Verify Order Reference column header is displayed
3. Verify Order Reference numbers are displayed with # prefix
4. Verify ERP Order badge is displayed for ERP-synced orders

Co-Authored-By: sandaru@cutanddry.com <sandaru@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

- Changed login flow to use Login.logIntoRestaurant() then Login.navigateToDistributorPortal()
- Updated distributor to Wagner Foodservice (PriceData.DISTRIBUTOR_WAGNER)
- Updated customer code to 515 (existing Wagner customer with orders)

Co-Authored-By: sandaru@cutanddry.com <sandaru@cutanddry.com>
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.

1 participant