|
|
|
@ -47,8 +47,8 @@ Then(/^I should see the enumeration:$/) do |table| |
|
|
|
|
# as the html is not structured in any way we have to look for the first |
|
|
|
|
# h3 that contains the heading for the activity we are interested in |
|
|
|
|
# and then the td within the directly following table |
|
|
|
|
should have_selector("h3:contains('#{i18n_for_activity_type(type)}') + .generic-table--container table td", |
|
|
|
|
text: attributes['name']) |
|
|
|
|
selector = "h3:contains('#{i18n_for_activity_type(type)}') + .generic-table--container table td" |
|
|
|
|
should have_selector(selector, text: attributes['name']) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def activity_type_from_string(string) |
|
|
|
|