Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-43046

T&Q: Uncaught TypeError chrome console error

    XMLWordPrintable

    Details

    • 20 status:
      Verified
    • Test Plan:
      Hide
      1. Open the browser console in Chrome
      2. Add Tests & Quizzes to your site

      Test 1:

      1. Click on Tests & Quizzes - > Add
      2. Import the attached zip file 
      3. Select Edit beside the imported quiz - are there any console errors?

      Test 2: 

      1. Extract the zip file on your desktop
      2. Click on Question Pools - > Import Pool
      3. Select the XML file from the extracted files and import
      4. Click on Add to create a new quiz
      5. On the Questions page, select "Copy from question pool"
      6. Select the pool just imported and select one question
      7. Click Copy
      8. Back in the Questions page - are there any console errors?

       

       

      Show
      Open the browser console in Chrome Add Tests & Quizzes to your site Test 1: Click on Tests & Quizzes - > Add Import the attached zip file  Select Edit beside the imported quiz - are there any console errors? Test 2:   Extract the zip file on your desktop Click on Question Pools - > Import Pool Select the XML file from the extracted files and import Click on Add to create a new quiz On the Questions page, select "Copy from question pool" Select the pool just imported and select one question Click Copy Back in the Questions page - are there any console errors?    

      Description

      20x: No issues - Importing the same quizzes and using a question from the pool in a quiz

      21x: I imported an xml file into question pools, then created a quiz and selected 1 question from the quiz and saw a console error. Possibly related to SAK-43038?

      I then imported the zip file into assessments and clicked to edit it, and saw the same errors. 

      Am attaching the zip file so it can be imported as a new assessment, or extract the files and import the xml into the question pool then create a quiz and select a question from the pool.

      I did not see any server errors.

      ------------

      headscripts.js:798 GET https://trunk-mysql.nightly.sakaiproject.org/library/webjars/select2/4.0.8/js/select2.full.min.js?version=4bf64446 net::ERR_ABORTED 404
      includeWebjarLibrary @ headscripts.js:798
      (anonymous) @ editPool:1926
      headscripts.js:799 GET https://trunk-mysql.nightly.sakaiproject.org/library/webjars/select2/4.0.8/css/select2.min.css?version=4bf64446 net::ERR_ABORTED 404
      includeWebjarLibrary @ headscripts.js:799
      (anonymous) @ editPool:1926
      editPool:1931 Uncaught TypeError: $(...).select2 is not a function
      at HTMLDocument.<anonymous> (editPool:1931)
      at i (jquery.js:3232)
      at Object.fireWith [as resolveWith] (jquery.js:3362)
      at Function.ready (jquery.js:3582)
      at HTMLDocument.K (jquery.js:3617)
      (anonymous) @ editPool:1931
      i @ jquery.js:3232
      fireWith @ jquery.js:3362
      ready @ jquery.js:3582
      K @ jquery.js:3617

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  farreri Miguel Pellicer
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration