-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: downgrade jest to avoid a date bug * chore: add paragon icons and components to mocks * chore: top-level formatDate util * chore: redux transform hooks * chore: add top-level data selectors * chore: redux hooks * refactor: update GradebookHeader component * refactor: update GradebookFilters components * refactor: update BulkManagementControls * refactor: update EditModal component * refactor: update FilterMenuToggle * refactor: update FilteredUsersLabel; * refactor: update GradebookTable * refactor: update ImportSuccessToast * refactor: update PageButtons * refactor: update FilterBadges * refactor: update ScoreViewInput * refactor: update InterventionsReport * refactor: update SearchControls * refactor: update StatusAlerts * chore: fix text name * refactor: update SpinnerIcon * chore: remove stale component * refactor: update GradesView top component * chore: remove old snapshots * chore: update package-lock to node 18
- Loading branch information
1 parent
3be81e0
commit 39bff6e
Showing
161 changed files
with
13,356 additions
and
18,560 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
131 changes: 131 additions & 0 deletions
131
src/components/GradebookHeader/__snapshots__/index.test.jsx.snap
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,131 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`GradebookHeader component render default view shapshot 1`] = ` | ||
<div | ||
className="gradebook-header" | ||
> | ||
<a | ||
className="mb-3" | ||
href="test-dashboard-url" | ||
> | ||
<span | ||
aria-hidden="true" | ||
> | ||
<< | ||
</span> | ||
Back to Dashboard | ||
</a> | ||
<h1> | ||
Gradebook | ||
</h1> | ||
<div | ||
className="subtitle-row d-flex justify-content-between align-items-center" | ||
> | ||
<h2> | ||
test-course-id | ||
</h2> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`GradebookHeader component render frozen grades snapshot: show frozen warning 1`] = ` | ||
<div | ||
className="gradebook-header" | ||
> | ||
<a | ||
className="mb-3" | ||
href="test-dashboard-url" | ||
> | ||
<span | ||
aria-hidden="true" | ||
> | ||
<< | ||
</span> | ||
Back to Dashboard | ||
</a> | ||
<h1> | ||
Gradebook | ||
</h1> | ||
<div | ||
className="subtitle-row d-flex justify-content-between align-items-center" | ||
> | ||
<h2> | ||
test-course-id | ||
</h2> | ||
</div> | ||
<div | ||
className="alert alert-warning" | ||
role="alert" | ||
> | ||
The grades for this course are now frozen. Editing of grades is no longer allowed. | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`GradebookHeader component render show bulk management snapshot: show toggle view message button with handleToggleViewClick method 1`] = ` | ||
<div | ||
className="gradebook-header" | ||
> | ||
<a | ||
className="mb-3" | ||
href="test-dashboard-url" | ||
> | ||
<span | ||
aria-hidden="true" | ||
> | ||
<< | ||
</span> | ||
Back to Dashboard | ||
</a> | ||
<h1> | ||
Gradebook | ||
</h1> | ||
<div | ||
className="subtitle-row d-flex justify-content-between align-items-center" | ||
> | ||
<h2> | ||
test-course-id | ||
</h2> | ||
<Button | ||
onClick={[MockFunction hooks.handleToggleViewClick]} | ||
variant="tertiary" | ||
> | ||
toggle-view-message | ||
</Button> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`GradebookHeader component render user cannot view gradebook snapshot: show unauthorized warning 1`] = ` | ||
<div | ||
className="gradebook-header" | ||
> | ||
<a | ||
className="mb-3" | ||
href="test-dashboard-url" | ||
> | ||
<span | ||
aria-hidden="true" | ||
> | ||
<< | ||
</span> | ||
Back to Dashboard | ||
</a> | ||
<h1> | ||
Gradebook | ||
</h1> | ||
<div | ||
className="subtitle-row d-flex justify-content-between align-items-center" | ||
> | ||
<h2> | ||
test-course-id | ||
</h2> | ||
</div> | ||
<div | ||
className="alert alert-warning" | ||
role="alert" | ||
> | ||
You are not authorized to view the gradebook for this course. | ||
</div> | ||
</div> | ||
`; |
Oops, something went wrong.