Commit Graph

12 Commits (b97ee3f3bba399f48092d1adaf8ba8fbb80e6a80)

Author SHA1 Message Date
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