Sha256: 5d8a1cbb7854a639ecc14e3665697dd4e4fc6b6a326f730b445059bbc0cda2cb

Contents?: true

Size: 596 Bytes

Versions: 27

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'

describe Uia::Patterns::Text do
  Given(:text_field) do
    Uia.find_element(id: 'MainFormWindow').children.find { |e| e.id == 'multiLineTextField' }.as :text
  end

  context '#text' do
    context 'getting / setting' do
      When { text_field.text = '{text} to be expected!' }
      Then { text_field.text == '{text} to be expected!' }
    end

    context 'updating' do
      Given { text_field.text = 'about to be overwritten' }
      When { text_field.text = 'expected update' }
      Then { text_field.text == 'expected update' }
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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