We need to use jQuery in the cart module's cart_block library. However it is not marked as a dependency and can cause test failures (and failures where a page does not load jQuery elsewhere.)

One or more errors were raised in the Javascript code on the page.
            If you don't care about these errors, you can ignore them by
            setting js_errors: false in your Poltergeist configuration (see documentation for details).
ReferenceError: Can't find variable: jQuery
ReferenceError: Can't find variable: jQuery
    at http://localhost:8080/modules/commerce/modules/cart/js/commerce_cart.js?v=8.2.0-dev:36 in global code
CommentFileSizeAuthor
#5 cart-jquery-2747897-5.patch743 bytesgoz

Comments

mglaman created an issue. See original summary.

bojanz’s picture

Issue tags: +drupaldevdays

Tagging for dev days. Of course, as long as it's unassigned it can be taken by non-devdays people too :)

bojanz’s picture

Issue tags: -drupaldevdays +DevDaysMilan
goz’s picture

Assigned: Unassigned » goz

I'm working on it for DevDaysMilan. Starting remotely

goz’s picture

Status: Active » Needs review
StatusFileSize
new743 bytes

  • GoZ committed 82163ce on 8.x-2.x
    Issue #2747897 by GoZ: Library commerce_cart/cart_block depends on...
  • mglaman authored ae45b1e on 8.x-2.x
    Merge pull request #411 from GoZOo/2747897-commerce-cart-jquery
    
    Issue #...
mglaman’s picture

Status: Needs review » Fixed

Thanks! Merged.

Status: Fixed » Closed (fixed)

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