diff --git a/features/homepage.feature b/features/homepage.feature index 2bccdcc..c0750d9 100644 --- a/features/homepage.feature +++ b/features/homepage.feature @@ -39,3 +39,8 @@ Feature: Homepage Given A link already exists with the url "https://google.com" and code "aaaaaa" When I visit the "/aaaaaa" location Then I should be redirected to "https://google.com" + + Scenario: Accessing a nonexistent URL code + Given I visit the "/aaaaaa" location + Then I should be redirected to "/" + And I should see the message "Link aaaaaa doesn't exist"