Problem/Motivation

Automated tests must cover as much as possible features in Anu LMS to avoid bugs during development of new features.

Acceptance criteria

  • The new test is added to "anu_lms_assessments" module and requires only "anu_lms + anu_lms_assessments"
  • The test covers all types of questions for lessons

Tech concept

  • Add a new test in anu_lms_assessments module (it should be FunctionalJavascript test)
  • Create a new lesson
  • Add Question: Long answer on 1st page
  • Add Question: Multiple choice on 2nd page
  • Add Question: Scale on 3rd page
  • Add Question: Short answer on 4th page
  • Add Question: Single choice on 5th page
  • On 6th page add 2 questions (2 Question: Short answer)
  • Save it.
  • Use correct/incorrect answers for all questions on all pages and make sure after hit Submit it gets some explanation (f.e. for "Short Answer" should appears "Suggested answer CORRECT_ANSWER" message under the input).
  • Also make sure that Next/Finish button is disabled till all question on a page will not be answered.

Issue fork anu_lms-3313777

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

beloglazov91 created an issue. See original summary.

beloglazov91’s picture

Assigned: beloglazov91 » Unassigned
Status: Active » Needs review

spleshka’s picture

Status: Needs review » Fixed

Thanks Alexey, happy to merge this as well!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.