Skip to content

Commit

Permalink
Fix: disable tests that depend on Google Maps key
Browse files Browse the repository at this point in the history
The two disabled tests fail due to not having a working Google Maps API
key. The UI fails trying to load the map, and that JavaScript error
breaks the UI interactions and navigation.

I'm temporarily disabling the tests until we fix the UI or provide a
valid API Key.
  • Loading branch information
matiasgarciaisaia committed Feb 9, 2024
1 parent 3974045 commit 4bf91f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions spec/integration/collections/delete_site_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe "delete_site", :type => :request do

it "should delete site", js:true do
xit "should delete site", js:true do # test fails without a valid Google Maps API key
user = User.make(:email => '[email protected]', :password => '1234567', :phone_number => '855123456789')
page.save_screenshot 'create_collection.png'
collection = create_collection_for (user)
Expand All @@ -20,4 +20,3 @@
expect(page).to have_no_content ("Health Center")
end
end

2 changes: 1 addition & 1 deletion spec/integration/collections/sites/sites_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# click_link 'Edit Site'
# end

it "should show validation errors", js: true do
xit "should show validation errors", js: true do # test fails without a valid Google Maps API key
click_button 'Create Site'
click_button 'Done'

Expand Down

0 comments on commit 4bf91f4

Please sign in to comment.