update for missing link scenario

+ if the link isn't found, don't redirect it, keep it on the same page
+ it should have a status code of 404
+ it should have the form fields as well

+ added page status check
This commit is contained in:
2023-10-07 21:10:16 -07:00
parent f8499a79c2
commit c7fee27623
2 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -42,5 +42,8 @@ Feature: Homepage
Scenario: Accessing a nonexistent URL code
Given I visit the "/aaaaaa" location
Then I should be on "/" page
Then I should be on "/aaaaaa" page
And The status code should be 404
And I should see the message "Link aaaaaa doesn't exist"
And I should see a form field "url"
And I should see a "Submit" button