Sha256: 708cd58b72ef9ef0d77a20947f688a319b36a73fcfa5a35f914a265040fd0a6c

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 Bytes

Contents

require "test_helper"

module Workarea
  module Storefront
    class StyledSelectsSystemTest < Workarea::SystemTest
      def test_styled_select
        visit storefront.style_guides_path

        Capybara.match = :first

        within "#components" do
          click_on "styled-select"
        end

        assert_selector ".styled-select"

        within ".styled-select" do
          assert_selector "select"
        end
      end

      def test_styled_select_with_class_modifier
        visit storefront.style_guides_path

        Capybara.match = :first

        within "#components" do
          click_on "styled-select"
        end

        assert_selector ".styled-select--modified"

        within ".styled-select--modified" do
          assert_selector "select"
          refute_selector ".styled-select--modified"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-styled_selects-1.1.2 test/system/workarea/storefront/styled_selects_system_test.rb
workarea-styled_selects-1.1.1 test/system/workarea/storefront/styled_selects_system_test.rb