Sha256: 55933df80c29f66c20fc3640ca5cd7c6477c81456a75f4178fe38ea633790d05
Contents?: true
Size: 799 Bytes
Versions: 2
Compression:
Stored size: 799 Bytes
Contents
require "test_helper" module Workarea decorate Storefront::NavigationSystemTest, with: :one_theme do def test_mobile_navigation_menus resize_window_to("small") leaf = create_taxon(name: "Leaf", url: "http://example.com") menu = create_menu(taxon: leaf) content = Content.for(menu) content.blocks.create!(type: "text", data: { text: "Foo" }) visit storefront.root_path click_link "mobile_nav_button" click_link "First Level" assert(page.has_content?("Second Level")) click_link "←" click_link "Leaf" assert(page.has_content?("Foo")) assert_current_path(storefront.root_path) page.evaluate_script("$('.mobile-nav-overlay').trigger('click');") assert(page.has_no_content?("Foo")) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-one_theme-1.3.1 | test/system/workarea/storefront/navigation_system_test.decorator |
workarea-one_theme-1.3.0 | test/system/workarea/storefront/navigation_system_test.decorator |