Sha256: 17a83c8d1d5832d4d30fc15a97a8675ea65c6fdf3e4edee7b0e560583bc79509
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'test_helper' module workarea module Storefront class OptionalFeatureSystemTest < Workarea::SystemTest setup :set_product def set_product @product = create_product( name: 'Wallpaper', template: 'image_decoration' ) end def test_grayscale_image visit storefront.product_path(@product) assert(page.has_content?('OPTIONAL FEATURES', true)) assert_select "input[type=checkbox][name='black and white']" assert(page.has_no_selector?('.img-filter-grayscale')) end def test_flip_image visit storefront.product_path(@product) assert(page.has_content?('OPTIONAL FEATURES', true)) assert_select "input[type=checkbox][name='flip image']" assert(page.has_no_selector?('.img-transform-mirror')) end def test_personalize visit storefront.product_path(@product) assert(page.has_content?('OPTIONAL FEATURES', true)) assert_select "input[type=checkbox][name='personalize']" fill_in 'text', with: 'sushmitha' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-image_decoration-1.0.0.pre | test/system/workarea/storefront/optional_feature_system_test.rb |