Skip to content
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

Instructor Permissions Tests: fetch DDAHs #588

Merged

Conversation

alex-kozin
Copy link
Contributor

@alex-kozin alex-kozin commented May 21, 2021

First test for fetching DDAHs for instructor. Related to issue #597

package.json Outdated Show resolved Hide resolved
@alex-kozin alex-kozin force-pushed the feat/test-instructor-permissions branch from 35157be to 92aa8d6 Compare May 28, 2021 17:23
@alex-kozin alex-kozin changed the title Instructor Permissions Tests [WIP] Instructor Permissions Tests: fetch DDAHs May 28, 2021
@alex-kozin alex-kozin marked this pull request as ready for review May 28, 2021 23:10
@alex-kozin alex-kozin changed the title [WIP] Instructor Permissions Tests: fetch DDAHs Instructor Permissions Tests: fetch DDAHs May 28, 2021
@alex-kozin alex-kozin requested a review from siefkenj May 28, 2021 23:10
Comment on lines 79 to 81
const newDdah = {
assignment_id: assignments.payload[0].id,
duties: [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could alternatively pass this as a parameter, but I opted for hard-coding it here, so that the test itself is easier to read/understand

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard coding is fine. We'll change it if we need more functionality.

frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
Comment on lines 79 to 81
const newDdah = {
assignment_id: assignments.payload[0].id,
duties: [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard coding is fine. We'll change it if we need more functionality.

frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
frontend/src/tests/instructor-permission-test.js Outdated Show resolved Hide resolved
@alex-kozin alex-kozin requested a review from siefkenj May 31, 2021 01:36
@siefkenj
Copy link
Contributor

Looks great!

@siefkenj siefkenj merged commit 5a0cecd into uoft-tapp:master May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instructor permission test should also test correct data visibility
2 participants