Commit Graph

11 Commits (f5d1361d59ca5de1ad3b012febfbf98e8ce93e79)

Author SHA1 Message Date
Adam Townsend 72e1cee9d5 split features into 2 separate feature files 2023-10-09 20:19:34 -07:00
Adam Townsend c7fee27623 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
2023-10-07 21:10:16 -07:00
Adam Townsend b97ee3f3bb use the correct clause format since staying on site 2023-10-07 13:37:51 -07:00
Adam Townsend beb9b0c14a added new scenario 2023-10-07 13:27:00 -07:00
Adam Townsend 81b12b5d6f added simplecov and a new test
+ simplecov is a test coverage tool to show what code is covered and
  where holes are
+ added newest test to validate that the redirect url works as expected
2023-10-03 18:29:03 -07:00
Adam Townsend 8b2780820c update for features
+ added flash/message assertions
+ adjusted urls to be http://google.com for tests for now
+ added @db-test tags to tests that use db interactions
+ added a scenario for duplicate URLs being used
+ added before and after steps to init and clean up db tests
+ added initialization of a test db for tests instead of interacting
  with the production database
2023-10-03 15:58:56 -07:00
Adam Townsend 52a6bac85f added 3rd test case for submitting a url 2023-10-02 11:37:19 -07:00
Adam Townsend a1ea2a09ec expanded click button to click any button for easier use 2023-10-01 12:14:41 -07:00
Adam Townsend 445236d735 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
2023-10-01 12:10:30 -07:00
Adam Townsend 94026bdad2 added more parts for the first scenario and updated code to work with the changes 2023-09-30 18:39:30 -07:00
Adam Townsend a34b788ff4 added testing stuff, and wrote first successful test! 2023-09-30 14:33:24 -07:00