![]() Test Plan - run the db migration to add url to the SubmissionDraft table - bundle exec rake db:migrate:up VERSION=20190916193616 - Create a course and add a student to it - Create an assignment with a submission type of online url - Masquerade as the student and navigate to the /graphiql endpoint - Run the following mutation updated with the appropriate submissionID: ``` mutation MyMutation { __typename createSubmissionDraft(input: {submissionId: <your_submission_id>, url: "http://www.google.com", attempt: 1}) { errors { attribute message } submissionDraft { _id url submissionAttempt } } } ``` - The mutation should return 0 errors and the submission draft should reflect the given url - Run the following query updated with the appropriate submissionID: ``` query MyQuery { __typename legacyNode(_id: <your_submission_id>, type: Submission) { ... on Submission { id submissionDraft { url submissionAttempt _id } } } } ``` - The query result should show the url you entered in the previous mutation refs COMMS-2331 flag=assignments_2 Change-Id: I60d756a9f0a29ea5aece960416edbb43c0949ddc Reviewed-on: https://gerrit.instructure.com/209727 Tested-by: Jenkins Reviewed-by: Landon Gilbert-Bland <lbland@instructure.com> QA-Review: Ben Nelson <bnelson@instructure.com> Product-Review: Matthew Lemon <mlemon@instructure.com> |
||
---|---|---|
.. | ||
loaders | ||
mutations | ||
selenium | ||
types | ||
graphql_helpers_spec.rb | ||
graphql_spec_helper.rb | ||
legacy_node_spec.rb | ||
mutation_audit_log_spec.rb | ||
postgres_statement_timeout_spec.rb | ||
token_scoping_spec.rb |