Implement tests for AddToCartForm implementation in product module.

Comments

vasike created an issue. See original summary.

vasike’s picture

vasike’s picture

Status: Active » Needs review
StatusFileSize
new2.97 KB

There is a first patch for this.
- It uses the CartTestBase from #2650838-6: Add a test for the cart page
- 2 checks:
1. Test adding an existing product.
2. Test adding a new product

mglaman’s picture

StatusFileSize
new2.84 KB

New PR https://github.com/drupalcommerce/commerce/pull/333.

Previous patch was for old add to cart form. New work reflects up to date add to cart form.

mglaman’s picture

StatusFileSize
new8.39 KB

Updated tests. Adds attribute field and three variations. Tests adding default variation and a different variation from attribute options.

Next is testing the ajaxified multiple attributes.

  • mglaman committed 89bfdcd on 8.x-2.x
    Issue #2652768 by vasike, mglaman: AddToCartForm tests
    
  • bojanz committed c5f3075 on 8.x-2.x
    Merge pull request #333 from mglaman/2652768-cart-form-tests
    
    Issue #...
bojanz’s picture

Status: Needs review » Fixed

Boom!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.