From cb027e19c829cf3520081f36512b7f25bf7f4af2 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Mon, 2 Oct 2023 13:02:48 -0700 Subject: [PATCH] generalized fill in field with text action --- features/step_definitions/steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/steps.rb b/features/step_definitions/steps.rb index 0e99923..78eb083 100644 --- a/features/step_definitions/steps.rb +++ b/features/step_definitions/steps.rb @@ -10,8 +10,8 @@ When('I click the {string} button') do |string| click_button {string} end -When('I type {string} in the {string} field') do |email_txt, email_field| - fill_in email_field, with: email_txt +When('I type {string} in the {string} field') do |text, field| + fill_in field, with: text end # THEN