Sha256: 1c8fc0291a846845d2d6beded4a201169cdfe02dd099a28eed8906140f4306f4
Contents?: true
Size: 1.24 KB
Versions: 55
Compression:
Stored size: 1.24 KB
Contents
require 'test_helper' module Workarea module Admin class InventorySkusSystemTest < SystemTest include Admin::IntegrationTest def test_management visit admin.inventory_skus_path click_link 'add_inventory_sku' fill_in 'sku[id]', with: 'SKU1' click_button 'create_sku' assert(page.has_content?('Success')) assert(page.has_content?('SKU1')) click_link 'Attributes' fill_in 'sku[available]', with: '10' click_button 'save_sku' assert(page.has_content?('Success')) assert(page.has_content?('10')) visit admin.inventory_skus_path assert(page.has_ordered_text?('SKU1', '10', '0', '0', 'Ignore')) visit admin.inventory_sku_path('SKU1') click_link 'Delete' assert_current_path(admin.inventory_skus_path) assert(page.has_content?('Success')) refute(page.has_content?('SKU1')) end def test_editing_a_non_existent_sku visit admin.edit_inventory_sku_path('SKU1') assert(page.has_content?('SKU1')) fill_in 'sku[available]', with: '10' click_button 'save_sku' assert(page.has_content?('Success')) assert(page.has_content?('SKU1')) end end end end
Version data entries
55 entries across 55 versions & 1 rubygems