Sha256: 8df5ecc7c8b4e72c35462f00289f1db15229b649a21e4782ec82487152467212

Contents?: true

Size: 892 Bytes

Versions: 4

Compression:

Stored size: 892 Bytes

Contents

require 'spec_helper'

describe Uia::Patterns::Window do
  Given(:window) { Uia.find_element(id: /MainFormWindow/).as(:window) }

  context 'properties' do
    Then { window.visual_state == :normal }
    Then { window.interaction_state == :ready_for_user_interaction }
    Then { window.can_minimize? == true }
    Then { window.can_maximize? == true }
    Then { window.modal? == false }
    Then { window.topmost? == false }
  end

  context '#visual_state=' do
    context 'minimized' do
      When { window.visual_state = :minimized }
      Then { window.visual_state == :minimized }
    end

    context 'maximized' do
      When { window.visual_state = :maximized }
      Then { window.visual_state == :maximized }
    end

    context 'normal' do
      When { window.visual_state = :normal }
      Then { window.visual_state == :normal }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uia-0.0.7.3 spec/uia/patterns/window_spec.rb
uia-0.0.7.2 spec/uia/patterns/window_spec.rb
uia-0.0.7.1 spec/uia/patterns/window_spec.rb
uia-0.0.7 spec/uia/patterns/window_spec.rb