|
|
|
@ -134,7 +134,7 @@ Then(/^the "([^"]*)" row should (not )?be marked as allowing associations$/) do |
|
|
|
|
should_be_visible = !negation |
|
|
|
|
|
|
|
|
|
table_row = page.all(:css, "table.list tbody tr td", :text => title).first.find(:xpath, "./ancestor::tr") |
|
|
|
|
nodes = table_row.all(:css, '.timelines-pt-allows_association img[alt=checked]') |
|
|
|
|
nodes = table_row.all(:css, '.timelines-pt-allows_association span.icon-yes') |
|
|
|
|
if should_be_visible |
|
|
|
|
nodes.should_not be_empty |
|
|
|
|
else |
|
|
|
|