Skip to content

[Devin] Add test for DOT-TC-2770: Verify Search Feature After Editing Item Name#711

Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1769363515-verify-search-after-editing-item-name
Open

[Devin] Add test for DOT-TC-2770: Verify Search Feature After Editing Item Name#711
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1769363515-verify-search-after-editing-item-name

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 25, 2026

Summary

Adds automated test for DOT-TC-2770 which verifies that after editing an item name in the Order Guide Edit section, the updated item can be found using the search feature.

Changes:

  • New test class VerifySearchFeatureAfterEditingItemNameTest.java implementing the test case workflow
  • Added lbl_editItemNameInput locator and methods (getEditItemNameInputValue, enterEditItemName) to CustomersPage.java
  • Added wrapper methods to Customer.java functions layer
  • Added test to regression1.xml suite

Test Flow:

  1. Login as distributor → Navigate to Customers → Search customer 21259
  2. Click Order Guide → Go to Edit Order Guide Items
  3. Edit an item's name (append " Edited" suffix)
  4. Save and close editor → Search for the edited item name
  5. Verify the item appears in search results
  6. Restore original item name (cleanup)

Updates Since Last Revision

  • Fixed compilation error: Changed distributorUI.getAttribute() to distributorUI.getText() for retrieving input field value, as getAttribute method doesn't exist in KeywordBase with that signature

Review & Testing Checklist for Human

  • Verify XPath locator: The locator //label[text()='Item Name']/following-sibling::input needs validation against the actual Edit Item popup UI structure - this was not manually verified
  • Verify test data validity: Confirm customer 21259 exists with item code 01700 in their order guide, and that this order guide allows item name editing (manually created OGs vs ERP-synced OGs may have different permissions)
  • Run test manually: Execute the test in the UAT environment to confirm the complete flow works end-to-end
  • Check cleanup behavior: If test fails midway, the item name may remain edited - verify this doesn't impact other tests

Recommended Test Plan:

  1. Run the test locally against UAT environment
  2. Verify the Edit Item popup opens correctly and the item name field is editable
  3. Confirm search returns the edited item name after saving

Notes

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

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