split features into 2 separate feature files
parent
a90ff753b1
commit
72e1cee9d5
|
|
@ -33,17 +33,3 @@ Feature: Homepage
|
||||||
And I click the "Submit" button
|
And I click the "Submit" button
|
||||||
Then I should be on "/create" page
|
Then I should be on "/create" page
|
||||||
And I should see the message "Link exists"
|
And I should see the message "Link exists"
|
||||||
|
|
||||||
@db-test
|
|
||||||
Scenario: Accessing the URL based on the shortcode
|
|
||||||
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 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
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
# features/visit.feature
|
||||||
|
|
||||||
|
Feature: Visit
|
||||||
|
|
||||||
|
Accessing a URL from it's link code
|
||||||
|
|
||||||
|
@db-test
|
||||||
|
Scenario: Accessing the URL based on the shortcode
|
||||||
|
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 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
|
||||||
Loading…
Reference in New Issue