Sha256: a2c22284e8f24991955dffec99ff218591de5c507c4ad8c4a204f2e342edc753

Contents?: true

Size: 642 Bytes

Versions: 33

Compression:

Stored size: 642 Bytes

Contents

require 'spec_helper'

describe Uia::Patterns::ExpandCollapse do
  let(:main) { Uia.find_element id: 'MainFormWindow' }

  Given(:parent_one) { main.find(name: 'Parent One').as :expand_collapse }

  context 'properties' do
    context '#expand_collapse_state' do
      Then { parent_one.expand_collapse_state == :collapsed }
    end
  end

  context '#expand' do
    When { parent_one.expand }
    Then { parent_one.expand_collapse_state == :expanded }
  end

  context '#collapse' do
    Given { parent_one.expand }
    When { parent_one.collapse }
    Then { parent_one.expand_collapse_state == :collapsed }
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
uia-1.0 spec/uia/patterns/expand_collapse_spec.rb
uia-0.8 spec/uia/patterns/expand_collapse_spec.rb
uia-0.7 spec/uia/patterns/expand_collapse_spec.rb
uia-0.7.alpha.1 spec/uia/patterns/expand_collapse_spec.rb
uia-0.6 spec/uia/patterns/expand_collapse_spec.rb
uia-0.5 spec/uia/patterns/expand_collapse_spec.rb
uia-0.4.4 spec/uia/patterns/expand_collapse_spec.rb
uia-0.4.3 spec/uia/patterns/expand_collapse_spec.rb
uia-0.4.2 spec/uia/patterns/expand_collapse_spec.rb
uia-0.4.1 spec/uia/patterns/expand_collapse_spec.rb
uia-0.4 spec/uia/patterns/expand_collapse_spec.rb
uia-0.3.3 spec/uia/patterns/expand_collapse_spec.rb
uia-0.3.2 spec/uia/patterns/expand_collapse_spec.rb
uia-0.3.1 spec/uia/patterns/expand_collapse_spec.rb
uia-0.3 spec/uia/patterns/expand_collapse_spec.rb
uia-0.2.1 spec/uia/patterns/expand_collapse_spec.rb
uia-0.2 spec/uia/patterns/expand_collapse_spec.rb
uia-0.1.3.1 spec/uia/patterns/expand_collapse_spec.rb
uia-0.1.3 spec/uia/patterns/expand_collapse_spec.rb
uia-0.1.2.3 spec/uia/patterns/expand_collapse_spec.rb