-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add checkbox to form - Add appropriate translation strings - Require user to (a) check import all, and/or (b) provide a list of obss
- Loading branch information
Showing
5 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test/integration/capybara/inat_imports_integration_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require("test_helper") | ||
|
||
# Test things that are untestable in integration tests | ||
class InatImportsTest < CapybaraIntegrationTestCase | ||
def test_link_to_licenses | ||
login(mary) | ||
visit(new_observations_inat_import_path) | ||
|
||
fill_in("inat_username", with: "anything") | ||
page.check("consent") | ||
click_on("Submit") | ||
|
||
assert_flash_text(:inat_no_imports_designated.t) | ||
assert_text(:create_inat_import_title.l) | ||
end | ||
end |