added 3rd test case for submitting a url

This commit is contained in:
2023-10-02 11:37:19 -07:00
parent a1ea2a09ec
commit 52a6bac85f
2 changed files with 11 additions and 2 deletions
+7 -2
View File
@@ -5,13 +5,18 @@ 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