Skip to content

Commit

Permalink
Misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmartin committed Jul 20, 2023
1 parent 76482c7 commit 64df42c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rails/spec/libs/materials/data_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class DataHelpersTestController < ApplicationController
expect(rubric_doc).not_to be_empty
end

it "should not return values for teacher resource and teacher guide to guests" do
it "should not return values for teacher resource, teacher guide and rubric to guests" do
sign_in guest
links = controller.send(:links_for_material, material_a)
teacher_resources = links[:teacher_resources]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ const BrowsePage = Component({
{links.teacher_resources ? <a className='teacherResourcesLink portal-pages-secondary-button' href={links.teacher_resources.url} target='_blank' onClick={this.handleTeacherResourcesClick}>{links.teacher_resources.text}</a> : null}
{links.assign_collection ? <a className='portal-pages-secondary-button' href={`${links.assign_collection.url}`} onClick={this.handleAddToCollectionClick} target='_blank'>{links.assign_collection.text}</a> : null}
{links.teacher_guide ? <a className='portal-pages-secondary-button' href={links.teacher_guide.url} target='_blank' onClick={this.handleTeacherGuideClick}>{links.teacher_guide.text}</a> : null}

{links.print_url ? <a className='portal-pages-secondary-button' href={links.print_url.url}>Print</a> : null}
{links.external_copy ? <a className='portal-pages-secondary-button' href={links.external_copy.url}>Copy</a> : null}
{editLink ? <a className='portal-pages-secondary-button' href={editLink}>Edit</a> : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,32 @@ describe('When I try to render a student roster', () => {
it("should render with default parameters", () => {
const studentRoster = Enzyme.shallow(<StudentRoster canEdit={true} students={students} otherStudents={otherStudents} />);
expect(studentRoster.html()).toBe(pack(`
<table class=\"table\">
<table class="table">
<tbody>
<tr>
<th>Name</th>
<th>Username</th>
<th>Last Login</th>
<th>Assignments Started</th>
<th class=\"hide_in_print\"></th>
<th class="hide_in_print"></th>
</tr>
<tr>
<td>Student 1</td>
<td>s1</td>
<td>Last Tuesday</td>
<td>1</td>
<td class=\"hide_in_print\">
<span class=\"link\" role=\"link\">Remove Student</span>
<span class=\"link\" role=\"link\">Change Password</span></td>
<td class="hide_in_print">
<span class="link" role="link">Remove Student</span>
<span class="link" role="link">Change Password</span></td>
</tr>
<tr>
<td>Student 2</td>
<td>s2</td>
<td>Never</td>
<td>2</td>
<td class=\"hide_in_print\">
<span class=\"link\" role=\"link\">Remove Student</span>
<span class=\"link\" role=\"link\">Change Password</span></td>
<td class="hide_in_print">
<span class="link" role="link">Remove Student</span>
<span class="link" role="link">Change Password</span></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 64df42c

Please sign in to comment.