mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 12:09:17 +08:00
follow @ZmagoD's remarks
This commit is contained in:
parent
1c3c822796
commit
428fa7f811
2 changed files with 1 additions and 6 deletions
|
@ -2,12 +2,6 @@ When(/^I click "(.+)" button$/) do |button|
|
|||
click_on(button)
|
||||
end
|
||||
|
||||
When(/^I click "(.+)" button within "(.+)"$/) do |button, container|
|
||||
within(find(container)) do
|
||||
click_on button
|
||||
end
|
||||
end
|
||||
|
||||
Given(/^Show me the page$/) do
|
||||
save_and_open_page
|
||||
end
|
||||
|
|
|
@ -19,6 +19,7 @@ end
|
|||
|
||||
Then(/^I should see "(.+)" in Role column of "(.+)" within Team members table$/) do |role, email|
|
||||
wait_for_ajax
|
||||
sleep 0.3
|
||||
mail_td = find('td', text: /\A#{email}\z/)
|
||||
parent = mail_td.first(:xpath, './/..')
|
||||
expect(parent).to have_css('td', text: /\A#{role}\z/)
|
||||
|
|
Loading…
Reference in a new issue