Sha256: a7c7d7617a6f59df054864b5aad030dfeffcd8a59bde7c30f238d3e6551efbf1
Contents?: true
Size: 1.33 KB
Versions: 13
Compression:
Stored size: 1.33 KB
Contents
require 'test_helper' module Workarea decorate Storefront::GuestCheckoutSystemTest, with: :murals_your_way do def test_creating_an_account assert_current_path(storefront.checkout_addresses_path) fill_in_email fill_in_shipping_address uncheck 'same_as_shipping' fill_in_billing_address click_button t('workarea.storefront.checkouts.continue_to_shipping') assert_current_path(storefront.checkout_shipping_path) assert(page.has_content?('Success')) click_button t('workarea.storefront.checkouts.continue_to_payment') assert_current_path(storefront.checkout_payment_path) assert(page.has_content?('Success')) fill_in_credit_card click_button t('workarea.storefront.checkouts.place_order') assert_current_path(storefront.checkout_confirmation_path) fill_in 'password', with: 'W3bl1nc!' check 'email_signup' click_button t('workarea.storefront.users.create_account') assert_current_path(storefront.users_account_path) assert(page.has_content?('Success')) assert(page.has_content?('Ben')) assert(page.has_content?('Crouse')) assert(page.has_content?(Order.first.id)) assert(page.has_content?('22 S. 3rd St.')) assert(page.has_content?('1019 S. 47th St.')) assert(page.has_content?('1111')) end end end
Version data entries
13 entries across 13 versions & 1 rubygems