follow @ZmagoD's remarks

This commit is contained in:
mlorb 2017-11-07 11:29:37 +01:00
parent 1c3c822796
commit 428fa7f811
2 changed files with 1 additions and 6 deletions

View file

@ -2,12 +2,6 @@ When(/^I click "(.+)" button$/) do |button|
click_on(button) click_on(button)
end end
When(/^I click "(.+)" button within "(.+)"$/) do |button, container|
within(find(container)) do
click_on button
end
end
Given(/^Show me the page$/) do Given(/^Show me the page$/) do
save_and_open_page save_and_open_page
end end

View file

@ -19,6 +19,7 @@ end
Then(/^I should see "(.+)" in Role column of "(.+)" within Team members table$/) do |role, email| Then(/^I should see "(.+)" in Role column of "(.+)" within Team members table$/) do |role, email|
wait_for_ajax wait_for_ajax
sleep 0.3
mail_td = find('td', text: /\A#{email}\z/) mail_td = find('td', text: /\A#{email}\z/)
parent = mail_td.first(:xpath, './/..') parent = mail_td.first(:xpath, './/..')
expect(parent).to have_css('td', text: /\A#{role}\z/) expect(parent).to have_css('td', text: /\A#{role}\z/)