Skip to content

Commit

Permalink
Fixed 'Learn More' button and added a test (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelynch authored Jan 13, 2025
1 parent 68ae9fc commit 9eb0ce9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/welcome/_logged_out.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h1 class="LO-h1">TigerData Web Portal</h1>
<p class="LO-p">TigerData is a data management service for the Princeton research community that includes a suite of software tools and scalable, tiered storage to enable the organization, description, storage, sharing, and long-term sustainability of research and administrative data. </p>
<p class="LO-p">It enables the things you want to do (with your data), and makes it easier to do the things you have to do.</p>
<%= button_to "Learn More", user_cas_omniauth_authorize_path, class: "LO-b" %>
<%= button_to "Learn More", "https://tigerdata.princeton.edu", class: "LO-b" %>
<p class="LO-c">Log in is currently limited to early adopters. <%= link_to "Contact us", "mailto:[email protected]", class: "welcome-contact-us" %> for more information.</p>

</div>
Expand Down
7 changes: 7 additions & 0 deletions spec/system/welcome_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
expect(page).to have_link "Accessibility", href: "https://accessibility.princeton.edu/help"
end

it "shows the 'Learn More' button, which goes to the TigerData service page" do
visit "/"
expect(page).to have_button "Learn More"
click_button "Learn More"
assert_current_path("https://tigerdata.princeton.edu")
end

it "forwards to login page" do
project = FactoryBot.create(:project)
visit project_path(project)
Expand Down

0 comments on commit 9eb0ce9

Please sign in to comment.