Skip to content

[Devin] Add test for DOT-TC-2034: Verify hide price functionality in WL Order History section#710

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1769361573-DOT-TC-2034-hide-price-wl-order-history
Open

[Devin] Add test for DOT-TC-2034: Verify hide price functionality in WL Order History section#710
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1769361573-DOT-TC-2034-hide-price-wl-order-history

Conversation

@devin-ai-integration
Copy link
Contributor

[Devin] Add test for DOT-TC-2034: Verify hide price functionality in WL Order History section

Summary

This PR adds automated test coverage for test case DOT-TC-2034, which verifies that prices are hidden in the White-Label Home screen's Order History section when price visibility is set to "Hidden" for a customer.

The test follows the existing pattern from similar tests (DOT-TC-2033) and includes:

  • Setting price visibility to "Hidden" for a customer in the DP portal
  • Verifying prices are still visible on the DP side (OG, Catalog, PDP)
  • Logging in as the WL operator and placing an order
  • Verifying the checkout button shows "Checkout" text only (no price)
  • Submitting the order and navigating to WL Home screen
  • Verifying prices are NOT visible in the Order History section

Files changed:

  • CustomersPage.java - Added page elements and methods for WL Order History price verification
  • Customer.java - Added wrapper functions for the new page methods
  • New test class VerifyTheHidePriceFunctionalityInTheWhiteLabelHomeScreenOrderHistorySectionTest.java
  • regression14.xml - Added test to the regression suite

Review & Testing Checklist for Human

  • Verify XPath locators - The locators for Order History section (//div[contains(text(),'Order History')] | //h4[contains(text(),'Order History')]) and price detection (/following::*[contains(text(),'$')]) may need adjustment based on actual UI structure
  • Verify test data - Confirm customerID "16672", searchItemCode "01700", and OperatorName "465571413" are valid for the test environment
  • Run the test manually - Execute the test in the UAT environment to verify the complete flow works end-to-end
  • Verify the isCheckoutTextOnlyDisplayed() logic - Ensure this correctly validates that the checkout button shows only "Checkout" text without a price amount

Notes

  • Test follows the same pattern as VerifyTheHidePriceFunctionalityInTheDraftSectionTest.java (DOT-TC-2033)
  • Added to regression14.xml alongside other Price Visibility related tests
  • Code compiles successfully with mvn compile

Link to Devin run: https://app.devin.ai/sessions/8677474484a741e2970cb9694af7262c
Requested by: @sandaru-cd

… History section

- Add page elements and methods to CustomersPage for WL Order History price verification
- Add corresponding functions to Customer.java
- Create test class VerifyTheHidePriceFunctionalityInTheWhiteLabelHomeScreenOrderHistorySectionTest
- Add test to regression14.xml suite

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

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