diff --git a/Brewfile b/Brewfile index 71f2065e..bb4ba6cf 100644 --- a/Brewfile +++ b/Brewfile @@ -2,3 +2,6 @@ brew 'lefthook' brew 'ngrok' # brew 'solargraph' # brew 'solargrpah-rails' + +# chromedriver not required anymore +# brew uninstall chromedriver diff --git a/Gemfile b/Gemfile index 44812a1a..fd03deda 100644 --- a/Gemfile +++ b/Gemfile @@ -127,7 +127,6 @@ group :test do # Easy installation and use of web drivers to run system tests with browsers gem 'matrix' - gem 'webdrivers' # gem 'minitest-colorize' gem 'cuprite' diff --git a/Gemfile.lock b/Gemfile.lock index 1d23fadb..91e6b789 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -454,10 +454,6 @@ GEM activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) - webdrivers (5.2.0) - nokogiri (~> 1.6) - rubyzip (>= 1.3.0) - selenium-webdriver (~> 4.0) webrick (1.7.0) websocket (1.2.10) websocket-driver (0.7.6) @@ -523,7 +519,6 @@ DEPENDENCIES turbo-rails (~> 1.5.0) tzinfo-data web-console - webdrivers RUBY VERSION ruby 3.2.2p53 diff --git a/app/views/reviews/_show.html.erb b/app/views/reviews/_show.html.erb index 9f6608f1..8fade113 100644 --- a/app/views/reviews/_show.html.erb +++ b/app/views/reviews/_show.html.erb @@ -14,7 +14,7 @@ <%= link_to t('.edit-this-revie-0'), edit_user_review_path(current_user, review), class: 'btn-small' %>
- <%= link_to t('.delete-this-rev'), user_review_path(current_user, review), class: 'btn-small', data: { turbo_method: :delete } %> + <%= link_to t('.delete-this-rev'), user_review_path(current_user, review), class: 'btn-small', data: { turbo_method: :delete, turbo_frame: '_top' } %>
<% end %> diff --git a/test/system/coffeeshops_test.rb b/test/system/coffeeshops_test.rb index e6836613..f6dd296f 100644 --- a/test/system/coffeeshops_test.rb +++ b/test/system/coffeeshops_test.rb @@ -48,6 +48,7 @@ class CoffeeshopsTest < ApplicationSystemTestCase assert_text('"this place is bad"', count: 1) assert_selector('#review_rating', text: '★☆☆☆☆') assert_current_path %r{^/coffeeshops/\d{1,9}} + click_on 'Delete', match: :first assert_current_path %r{^/coffeeshops/\d{1,9}}