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-0.1.2.2 spec/uia/patterns/text_spec.rb
uia-0.1.2.1 spec/uia/patterns/text_spec.rb
uia-0.1.2 spec/uia/patterns/text_spec.rb
uia-0.1.1 spec/uia/patterns/text_spec.rb
uia-0.1 spec/uia/patterns/text_spec.rb
uia-0.0.9 spec/uia/patterns/text_spec.rb
uia-0.0.8 spec/uia/patterns/text_spec.rb