Compare commits
No commits in common. "b66a5bb3e127a2b7be554dcfc0a0384c41888ffc" and "1e9a066cd102005078096b81934c258990ebc5ac" have entirely different histories.
b66a5bb3e1
...
1e9a066cd1
|
|
@ -5,18 +5,13 @@ Feature: Homepage
|
|||
Loading the homepage is the initial starting point for this tool
|
||||
|
||||
Scenario: Homepage Loads with a form
|
||||
Given I visit the "/" page
|
||||
Given I visit the '/' page
|
||||
Then I should see text "URL Shortener"
|
||||
And I should see a form field "url"
|
||||
And I should see a "Submit" button
|
||||
|
||||
Scenario: Submitting the form without entering a URL
|
||||
Given I visit the "/" page
|
||||
Given I visit the '/' page
|
||||
When I click the "Submit" button
|
||||
Then I should be on "/" page
|
||||
|
||||
Scenario: Submitting the form with a correct URL
|
||||
Given I visit the "/" page
|
||||
When I type "http://google.com/" in the "url" field
|
||||
And I click the "Submit" button
|
||||
Then I should be on "/create" page
|
||||
|
|
|
|||
|
|
@ -10,10 +10,6 @@ When('I click the {string} button') do |string|
|
|||
click_button {string}
|
||||
end
|
||||
|
||||
When('I type {string} in the {string} field') do |text, field|
|
||||
fill_in field, with: text
|
||||
end
|
||||
|
||||
# THEN
|
||||
|
||||
Then('I should see text {string}') do |string|
|
||||
|
|
|
|||
Loading…
Reference in New Issue