Add step definition
This commit is contained in:
parent
d2812c6e1d
commit
c27cf291ba
|
@ -36,6 +36,10 @@ Then 'I see text {string}' do |text|
|
||||||
expect(page).to have_content text
|
expect(page).to have_content text
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Then 'I do not see text {string}' do |text|
|
||||||
|
expect(page).not_to have_content text
|
||||||
|
end
|
||||||
|
|
||||||
Then 'I see CSS {string} with text {string}' do |selector, text|
|
Then 'I see CSS {string} with text {string}' do |selector, text|
|
||||||
expect(page).to have_css selector, text: text
|
expect(page).to have_css selector, text: text
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue