Sha256: 948c5f0c864b08840d2acce3a4f92beefdb83c279bebd172d2ee2fc7182f6844
Contents?: true
Size: 1.48 KB
Versions: 5
Compression:
Stored size: 1.48 KB
Contents
# frozen_string_literal: true describe TestCentricity::ScreenObject, required: true do before :context do @test_screen = TestScreen.new end context 'screen object traits' do it 'returns page name' do expect(@test_screen.page_name).to eq('Basic Test Screen') end it 'returns page locator' do expect(@test_screen.page_locator).to eq({ accessibility_id: 'test screen' }) end it 'responds to open_portal' do expect(@test_screen).to respond_to(:open_portal) end it 'responds to load_page' do expect(@test_screen).to respond_to(:load_page) end it 'responds to verify_page_exists' do expect(@test_screen).to respond_to(:verify_page_exists) end it 'responds to exists?' do expect(@test_screen).to respond_to(:exists?) end end context 'page object with UI elements' do it 'responds to element' do expect(@test_screen).to respond_to(:element1) end it 'responds to button' do expect(@test_screen).to respond_to(:button1) end it 'responds to textfield' do expect(@test_screen).to respond_to(:field1) end it 'responds to image' do expect(@test_screen).to respond_to(:image1) end it 'responds to switch' do expect(@test_screen).to respond_to(:switch1) end it 'responds to checkbox' do expect(@test_screen).to respond_to(:check1) end it 'responds to section' do expect(@test_screen).to respond_to(:section1) end end end
Version data entries
5 entries across 5 versions & 1 rubygems