From c27cf291ba4b099a0328361cde95a38071d1b59b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 23 Feb 2019 03:13:27 +0500 Subject: [PATCH] Add step definition --- features/step_definitions/stepdefs.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/features/step_definitions/stepdefs.rb b/features/step_definitions/stepdefs.rb index f5e4a51..9f8c1a0 100644 --- a/features/step_definitions/stepdefs.rb +++ b/features/step_definitions/stepdefs.rb @@ -36,6 +36,10 @@ Then 'I see text {string}' do |text| expect(page).to have_content text 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| expect(page).to have_css selector, text: text end