mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
9 lines
324 B
Ruby
9 lines
324 B
Ruby
Given(/^I'm on the Protocols page of a "([^"]*)" task$/) do |task_name|
|
|
task = MyModule.find_by_name(task_name)
|
|
visit protocols_my_module_path(task)
|
|
end
|
|
|
|
Then(/^I should see "([^"]*)" attachment on "([^"]*)" step$/) do |file, step_name|
|
|
wait_for_ajax
|
|
expect(find('.step', text: step_name)).to have_content(file)
|
|
end
|