phanijyothi11-tamu / team-formation

0 stars 0 forks source link

[TF 37] Add Multiple Choice Questions ( MCQ) without correct answers #74

Open muresaijaideepreddy opened 1 week ago

muresaijaideepreddy commented 1 week ago

Scenario : Professor successfully adds a new MCQ question without a correct answer Given I am logged in as a professor And I navigate to the "Add Question " page When I select " MCQ" as the question type And I enter " What is your gender ?" in the question field And I add " Male " as option 1 And I add " Female " as option 2 And I add "Non - binary " as option 3 And I add " Prefer not to say " as option 4 And I click " Submit " Then I should see the message " MCQ question added successfully " And I should see the question " What is your gender ?" with the options "Male ," "Female ," "Non -binary ," and " Prefer not to say" Scenario : Professor tries to add an MCQ question without any options Given I am logged in as a professor And I navigate to the "Add Question " page When I select " MCQ" as the question type And I enter " What is your gender ?" in the question field And I do not add any options And I click " Submit " Then I should see an error message " Please provide at least two options for the MCQ" And the question should not be saved Scenario : Professor tries to add an MCQ question with only one option Given I am logged in as a professor And I navigate to the "Add Question " page When I select " MCQ" as the question type And I enter " What is your gender ?" in the question field And I add " Male " as option 1 And I do not add any other options And I click " Submit " Then I should see an error message " Please provide at least two options for the MCQ" And the question should not be saved Scenario : Professor tries to add an MCQ without entering a question Given I am logged in as a professor And I navigate to the "Add Question " page When I select " MCQ" as the question type And I leave the question field blank And I add " Male " as option 1 And I add " Female " as option 2 And I click " Submit " Then I should see an error message " Please enter a question " And the question should not be saved