-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieve column values from state object #441
Conversation
Refactor course instance table to obtain the default list of columns from a state value rather than a hard-coded list of columns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly small stylistic things here, plus a suggestion for fixing the broken tests...
The lack of a "meetings" column in the default view meant that the meeting modal integration tests were failing as they were expecting an "Edit Meeting" button to be visible. Since the meetings column was not visible, this was not the case and the tests thusly failed. This commit adds the meetings column into the default view to fix these breaking tests
Going by the previous course planner, `notes` is an optional column
Since this expression just returns an array, we don't need the spread operator here
Other pages (such as `FacultyAdmin` and `CourseAdmin`) all use the `VerticalSpace` component for providing vertical space around the page content
Aside from being deprecated in later versions( testing-library/dom-testing-library#416) it's also not needed here, as we can just return `findByDisplayValue` directly
The type can automatically be inferred from `defaultView` and usage of `T as Type` can actually interfere with other type checking done by TypeScript.
Codecov Report
@@ Coverage Diff @@
## develop #441 +/- ##
===========================================
- Coverage 97.82% 97.80% -0.02%
===========================================
Files 151 152 +1
Lines 2761 2785 +24
Branches 278 278
===========================================
+ Hits 2701 2724 +23
- Misses 26 27 +1
Partials 34 34
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just responded to the note about updating the end-to-end test in the future, but this is all set. 👍
Types of changes
to change)
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #437