moredip/Frank

Can't enter text

Closed this issue · 1 comments

Hi,
I'm trying to test a login form like this:

Feature: Logging in

Scenario: Moving from the 'Login' screen to the 'Home' screen
Given I launch the app
Then I should be on the Login screen
When I type "_" into the "Username" text field
When I type "
__" into the "Password" text field
Given I fill in "Username" with "_
_"
And I fill in "Password" with "
*_*"
And I tap "Log in"
Then I wait to see "Menu"

I get these errors:

When(/^I type "(.?)" into the "(.?)" text field$/) do |arg1, arg2|
pending # express the regexp above with the code you wish you had
end

Given(/^I fill in "(.?)" with "(.?)"$/) do |arg1, arg2|
pending # express the regexp above with the code you wish you had
end

Am i doing it wrong or is this a bug?

Nvm i fixed it by adding this to my steps

When(/^I type "(.?)" into the "(.?)" text field$/) do |arg1, arg2|
fill_in arg2, :with => arg1
end