Skip to content

Commit

Permalink
change yorkspace licence label
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Oct 31, 2024
1 parent df1bd87 commit e03869d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/views/student_view/process/review.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
</div>

<div class="licence-box my-5 bg-light p-3" >
<h4 title="Yorkspace Distribution Licence">Yorkspace Distribution Licence</h4>
<h4 title="Yorkspace Distribution Licence">YorkSpace Non-Exclusive Distribution Licence</h4>
<div class="form-text">Please review the licence below and accept if you agree</div>
<hr class="text-primary border-3">
<p>
<a id="ydlButton" class="btn btn-primary" data-bs-toggle="collapse" href="#collapseYDL" role="button" aria-expanded="false" aria-controls="collapseYDL">
View YorkSpace Licence Agreement
View YorkSpace Non-Exclusive Distribution Licence Agreement
</a>
</p>
<div class="collapse" id="collapseYDL">
Expand All @@ -83,7 +83,7 @@
</div>

<div class="bg-secondary-subtle p-2 fw-bold">
<%= f.input :yorkspace_licence_agreement, as: :boolean, label: "I agree to YorkSpace Distribution Licence", required: true %>
<%= f.input :yorkspace_licence_agreement, as: :boolean, label: "I agree to YorkSpace Non-Exclusive Distribution Licence", required: true %>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions test/system/students_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ class StudentsTest < ApplicationSystemTestCase
assert page.has_selector?('#thesis_yorkspace_licence_agreement', visible: true), "#thesis_yorkspace_licence_agreement not found."
checkbox = find('#thesis_yorkspace_licence_agreement', visible: true)
assert_not checkbox.disabled?
click_link('View YorkSpace Licence Agreement')
click_link('View YorkSpace Non-Exclusive Distribution Licence Agreement')
assert page.has_selector?('#yorkspace-licence', visible: true), "#yorkspace-licence not found."
assert page.has_selector?('#thesis_yorkspace_licence_agreement', visible: true), "#thesis_yorkspace_licence_agreement not found."
checkbox = find('#thesis_yorkspace_licence_agreement', visible: true)
checkbox.check

check('I agree to YorkSpace Distribution Licence', allow_label_click: true)
check('I agree to YorkSpace Non-Exclusive Distribution Licence', allow_label_click: true)

assert checkbox.checked?, "#thesis_yorkspace_licence_agreement checkbox is not checked."

Expand Down

0 comments on commit e03869d

Please sign in to comment.