This commit is contained in:
Martin Lensment 2014-09-16 17:58:51 +03:00
parent 168e6d2a01
commit 660eef414e
8 changed files with 55 additions and 18 deletions

View file

@ -103,14 +103,14 @@ feature 'Domain management', type: :feature do
within('#tech_contacts') { click_on 'Add' }
c = Contact.last
fill_in('Tech contact', with: c.code, fill_options: { blur: false })
fill_in('Contact', with: c.code, fill_options: { blur: false })
# TODO: Wait for poltergeist to support blur option, then uncomment these lines:
# expect(page).to have_text(c.code)
# click_on(c.code)
# expect(find_field('Tech contact').value).to eq(c.code)
# temporary solution:
page.execute_script("$('#contact_id').val('#{c.id}')")
page.execute_script("$('#domain_contact_contact_id').val('#{c.id}')")
click_on 'Save'