Skip to content

Commit

Permalink
Changed return links to hyperlinks (#1072)
Browse files Browse the repository at this point in the history
* Changed return links to hyperlinks

* Fixed breaking tests
  • Loading branch information
kelynch authored Nov 25, 2024
1 parent bcc2f53 commit 5503195
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/projects/approval_received.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

<p>If there are any issues in confirming the Active status of the project, you will receive a message at td-support@princeton.edu</p>

<%= button_to "Return to Dashboard", root_path, class: "btn btn-primary btn-sm", method: :get %>
<%= link_to "Return to Dashboard", root_path, class: "btn btn-primary btn-sm" %>

</div>
2 changes: 1 addition & 1 deletion app/views/projects/confirmation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

If you have questions, please contact the team at <%= mail_to "tigerdata@princeton.edu" %>.</p>

<%= button_to "Return to Dashboard", root_path, class: "btn btn-primary btn-sm", method: :get %>
<%= link_to "Return to Dashboard", root_path, class: "btn btn-primary btn-sm" %>

</div>
2 changes: 1 addition & 1 deletion app/views/projects/revision_confirmation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

If you have questions, please contact the team at <%= mail_to "tigerdata@princeton.edu" %>.</p>

<%= button_to "Return to Dashboard", root_path, class: "btn btn-primary btn-sm", method: :get %>
<%= link_to "Return to Dashboard", root_path, class: "btn btn-primary btn-sm" %>

</div>
6 changes: 3 additions & 3 deletions spec/system/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
# This is the confirmation page. It needs a button to return to the dashboard
# and it needs to be_axe_clean.
expect(page).to have_content "Project Revision Request Received"
expect(page).to have_button "Return to Dashboard"
expect(page).to have_link "Return to Dashboard"
expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
.skipping(:'color-contrast')
Expand Down Expand Up @@ -196,7 +196,7 @@
# This is the confirmation page. It needs a button to return to the dashboard
# and it needs to be_axe_clean.
expect(page).to have_content "New Project Request Received"
expect(page).to have_button "Return to Dashboard"
expect(page).to have_link "Return to Dashboard"
expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
.skipping(:'color-contrast')
Expand Down Expand Up @@ -450,7 +450,7 @@
# This is the confirmation page. It needs a button to return to the dashboard
# and it needs to be_axe_clean.
expect(page).to have_content "Project Approval Received"
expect(page).to have_button "Return to Dashboard"
expect(page).to have_link "Return to Dashboard"

expect(page).to be_axe_clean
.according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
Expand Down

0 comments on commit 5503195

Please sign in to comment.