-
Notifications
You must be signed in to change notification settings - Fork 0
Requirements added #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| # Bistro Delivery Automated Testing Requirements | ||
|
|
||
| ## Cart and Checkout Tests Requirements {#auto-req-1} | ||
|
|
||
| **Title:** Product List Verification in Checkout | ||
| **Description:** Verify cart items and totals are correctly displayed on checkout page | ||
|
|
||
| #### Test Requirements: | ||
|
|
||
| - Validate cart items list matches added products | ||
| - Verify total price calculations | ||
| - Test cart item removal functionality | ||
| - Verify cart state after item removal | ||
| - Test adding items back to cart | ||
| - Validate final cart state after modifications | ||
|
|
||
| **Title:** Order Placement with Cash Payment | ||
| **Description:** Verify successful order placement with valid data and cash payment | ||
|
|
||
| #### Test Requirements: | ||
|
|
||
| - Validate order items display | ||
| - Verify form field validation: | ||
| - Name input | ||
| - Email input | ||
| - Payment method selection | ||
| - Validate payment methods list | ||
| - Verify order placement success | ||
|
|
||
| ## Content Verification Tests Requirements {#auto-req-2} | ||
|
|
||
| **Title:** About Us Content Verification | ||
| **Description:** Verify About Us page content accuracy | ||
|
|
||
| #### Test Requirements: | ||
|
|
||
| - Validate page heading matches expected text | ||
| - Verify body content contains specific text | ||
| - Ensure content formatting is preserved | ||
|
|
||
| **Title:** Navigation Bar Display Verification | ||
| **Description:** Verify navbar elements and active states | ||
|
|
||
| #### Test Requirements: | ||
|
|
||
| - Validate navbar items list: | ||
| - Welcome | ||
| - Today's Menu | ||
| - About us | ||
| - Verify active states on different pages | ||
| - Test navigation state persistence | ||
| - Known issues to verify: | ||
| - Bug: Today's Menu active state incorrect | ||
| - Bug: About us active state incorrect | ||
|
|
||
| ## Menu Display Tests Requirements {#auto-req-3} | ||
|
|
||
| **Title:** Default Menu Display Verification | ||
| **Description:** Verify menu tabs and content display | ||
|
|
||
| #### Test Requirements: | ||
|
|
||
| - Validate default pizza menu display | ||
| - Verify tab states: | ||
| - PIZZAS | ||
| - DRINKS | ||
| - DESSERTS | ||
| - Test menu content for each tab | ||
| - Verify active state changes | ||
| - Validate menu item presence | ||
|
|
||
| **Title:** Welcome Banner Menu Navigation | ||
| **Description:** Verify Today's Menu access from welcome banner | ||
|
|
||
| #### Test Requirements: | ||
|
|
||
| - Validate welcome page content: | ||
| - Heading text | ||
| - Body text | ||
| - Menu button text | ||
| - Verify navigation functionality | ||
|
|
||
| ## Test Data Requirements | ||
|
|
||
| ### Menu Items | ||
|
|
||
| ```typescript | ||
| interface MenuItem { | ||
| name: string | ||
| price: number | ||
| } | ||
|
|
||
| interface CartResponse { | ||
| items: Array<{ | ||
| name: string | ||
| amount: number | ||
| }> | ||
| total: number | ||
| } | ||
| ``` | ||
|
|
||
| ### Form Data | ||
|
|
||
| ```typescript | ||
| interface OrderData { | ||
| name: string // e.g., "John Doe" | ||
| email: string // e.g., "johndoe@example.com" | ||
| paymentMethod: string // Must be from paymentMethods array | ||
| } | ||
| ``` | ||
ElenaGrasovskaya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## Test Environment Requirements | ||
|
|
||
| ### Page Objects Required | ||
|
|
||
| - Menu | ||
| - Cart | ||
| - Checkout | ||
| - Welcome | ||
| - About | ||
|
|
||
| ### Browser Requirements | ||
|
|
||
| - Tests must run in Playwright-supported browsers | ||
| - Viewport must be set to desktop dimensions | ||
| - JavaScript must be enabled | ||
|
|
||
| ## Performance Requirements | ||
|
|
||
| - Page navigation should complete within test timeouts | ||
| - Cart operations should be immediate | ||
| - Form submissions should complete within standard timeout | ||
|
|
||
| ## Error Handling Requirements | ||
|
|
||
| - Tests should handle async operations properly | ||
| - Proper error messages for failed assertions | ||
| - Timeout handling for network requests | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.