Skip to content

[Devin] Add test for DOT-TC-3626: Order View Items Tab and Timeline Tab Navigation#678

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1767160449-order-view-items-timeline-tabs
Open

[Devin] Add test for DOT-TC-3626: Order View Items Tab and Timeline Tab Navigation#678
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1767160449-order-view-items-timeline-tabs

Conversation

@devin-ai-integration
Copy link
Contributor

[Devin] Add test for DOT-TC-3626: Order View Items Tab and Timeline Tab Navigation

Summary

This PR adds automated test coverage for test case DOT-TC-3626, which verifies the Items tab and Timeline tab navigation functionality in the Order View page.

Changes include:

  • New test class VerifyOrderViewItemsTabAndTimelineTabNavigationTest.java that validates Items tab is active by default, Timeline tab navigation works, and switching back to Items tab works correctly
  • Added new locators in OrdersPage.java for Items tab (btn_items) and Ordered Items section (lbl_orderedItemsSection)
  • Added page object methods: clickItems(), isItemsTabActive(), isTimelineTabActive(), isOrderedItemsSectionDisplayed(), isTimelineContentDisplayed()
  • Added corresponding wrapper methods in Orders.java function class

Review & Testing Checklist for Human

  • Verify XPath locators match actual UI: The locators //a[text()='Items' and @role='tab'] and //div[contains(text(),'Ordered Items')] need to be validated against the actual Order View page structure
  • Verify tab active state detection: The implementation checks for "active" class in the tab element's class attribute - confirm this is how the UI indicates active tabs
  • Run the test locally against UAT environment to verify it passes end-to-end
  • Verify test data exists: Ensure there are orders in the "Last 90 Days" date range for the test to work

Recommended test plan: Run the test locally with mvn test -Dtest=VerifyOrderViewItemsTabAndTimelineTabNavigationTest -Dtest.env=uat and observe the browser to confirm the tab navigation works as expected.

Notes

…ation

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