Sha256: b207e17f4aa384e0fecf5cb1d37d8c487335ee4d5c73ec3cc8d99475a098e14f
Contents?: true
Size: 796 Bytes
Versions: 22
Compression:
Stored size: 796 Bytes
Contents
require 'rails_helper' feature 'Visitor searches contacts' do let(:email) { 'test_email@q.com' } let(:wrong_email) { 'wrong_email.com' } before do login using_wait_time 10 do create_contact(email) end end after do remove_test_contact(email) end scenario 'with correct query' do using_wait_time 10 do find("input[id$='search']").set(email).native.send_keys(:return) expect(page).to have_css('.contacts td', text: email) end end scenario 'with correct query' do using_wait_time 10 do search_input = find("input[id$='search']") search_input.set(wrong_email).native.send_keys(:return) expect(page).not_to have_css('.contacts td', text: email) search_input.set('').native.send_keys(:return) end end end
Version data entries
22 entries across 22 versions & 1 rubygems