Commit Graph

17 Commits (48ffdf560bc299649911c87a6abbc65f1fe6d200)

Author SHA1 Message Date
Adam Townsend 72f3e03edd added tests for invalid URL entries
+ URL that returns a 404
+ URL where the domain does not resolve with DNS
+ URL that is not properly formatted
2023-10-12 23:42:04 -07:00
Adam Townsend b08693e866 remove the puts, don't print out the test result 2023-10-12 23:41:38 -07:00
Adam Townsend e50667b392 split homepage out into homepage and submit feature sets 2023-10-10 17:29:23 -07:00
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 5ca4bf707b removed rspec db setup, i probably didn't have it set right to clean up
after each task, implemented that in the before and after steps
2023-10-03 16:02:33 -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 cb027e19c8 generalized fill in field with text action 2023-10-02 13:02:48 -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
Adam Townsend 935b0c5a9f cucumber initialization 2023-09-19 15:40:18 -07:00