Sha256: d1c6442314888e05ea468a9d951711370d5c1861e6570d2595eb2a74dc308535
Contents?: true
Size: 785 Bytes
Versions: 21
Compression:
Stored size: 785 Bytes
Contents
Then /^I should see the attribute "([^"]*)" with "([^"]*)"$/ do |title, value| elems = all ".attributes_table th:contains('#{title}') ~ td:contains('#{value}')" expect(elems.first).to_not eq(nil), "attribute missing" end Then /^I should see the attribute "([^"]*)" with a nicely formatted datetime$/ do |title| text = all(".attributes_table th:contains('#{title}') ~ td").first.text expect(text).to match /\w+ \d{1,2}, \d{4} \d{2}:\d{2}/ end Then /^the attribute "([^"]*)" should be empty$/ do |title| elems = all ".attributes_table th:contains('#{title}') ~ td > span.empty" expect(elems.first).to_not eq(nil), 'attribute not empty' end Then /^I should not see the attribute "([^"]*)"$/ do |title| expect(page).to_not have_css '.attributes_table th', text: title end
Version data entries
21 entries across 21 versions & 4 rubygems