Skip to content
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

Create Tests for Homepage Functionality and Product Visibility #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rdpfeifle
Copy link
Owner

Summary

Develop a suite of tests to verify various functionalities on the homepage, including the visibility of products, the functionality of buttons, and other interactive elements.

Acceptance Criteria

  • Verify 'Urban Grace' as the page title.
  • Ensure at least one product is displayed in the #products-container.
  • Confirm that each product card correctly renders details such as the product image, title, category, price, and the 'Add to Cart' button.
  • Verify that the 'Add to Cart' button becomes invisible or changes state after clicking it.
  • Ensure the quantity modification options (- [qty] +) are visible when 'Add to Cart' is clicked.
  • Confirm that the UI state updates appropriately when 'Add to Cart' is clicked.
  • Validate that the product quantity is correctly updated in the UI when modified, both in the .qty-counter and the .cart-container span.
  • Test the functionality of opening the cart when the cart button is clicked.

Related issue

closes #34

@rdpfeifle rdpfeifle self-assigned this Jan 8, 2024
Copy link

netlify bot commented Jan 8, 2024

Deploy Preview for vanilla-js-store-f62b9a ready!

Name Link
🔨 Latest commit ce0be57
🔍 Latest deploy log https://app.netlify.com/sites/vanilla-js-store-f62b9a/deploys/659c7931e66ded00087bcfc2
😎 Deploy Preview https://deploy-preview-35--vanilla-js-store-f62b9a.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

Create Tests for Homepage Functionality and Product Visibility
1 participant