Sha256: 043d143dc9c9006462ec27527043b13c92726f1fdf55305744016d74680749f6
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
module Workarea decorate Storefront::AnalyticsSystemTest, with: :flow_io do def test_announcing_add_to_cart_confirmation_event super events = find_analytics_events(for_event: 'addToCart') payload = events.first['arguments'].first assert_equal('USD', payload['currency_code']) end def test_announcing_checkout_order_placed_event super events = find_analytics_events(for_event: 'checkoutOrderPlaced') assert_equal(1, events.count) payload = events.first['arguments'].first order_item = payload['items'].first assert_equal("USD", payload['total_price_currency_code']) assert_equal("USD", payload['shipping_total_currency_code']) assert_equal("USD", payload['tax_total_currency_code']) assert_equal("USD", order_item['currency_code']) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | test/system/workarea/storefront/analytics_system_test.decorator |