[Devin] Add test for DOT-TC-2033: Verify hide price functionality in Draft section#700
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Conversation
…ction Co-Authored-By: sandaru@cutanddry.com <sandaru@cutanddry.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds automated test for DOT-TC-2033 which verifies the hide price functionality in the Draft section. The test validates that when Price Visibility is set to "Hidden" for a customer:
Review & Testing Checklist for Human
Draft.clickDraft(referenceNum)is correct - theclickDraftmethod in DraftPage expects a total price value, but we're passing a reference number. This may need to be changed to use a different method or the correct parameter.assertFalse(Draft.isRestaurantLastDraftDisplayed(itemPriceStr))correctly validates that prices are hidden - this checks if a draft with that price total is NOT displayed, which may not be the intended verificationRecommended test plan: Run this test in isolation against UAT environment and manually verify:
Notes
VerifyTheHidePriceFunctionalityTest.javaandVerifyDraftOrderSubmittedByOperatorTest.javaLink to Devin run: https://app.devin.ai/sessions/ccb816a866fa4d5686a3c5a1c440566b
Requested by: @sandaru-cd