2nd scenario
+ added a scenario for submitting the button with no text in url field + simplified the visit when clause to be used with any url + edited create route redirect if url param is empty (backend validation for required URL field) + added when clause for clicking submit button + added then clause for current path/page
This commit is contained in:
@@ -5,7 +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 homepage
|
||||
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
|
||||
When I click the submit button
|
||||
Then I should be on "/" page
|
||||
|
||||
|
||||
Reference in New Issue
Block a user