sarjona

view_question_name_column.feature - PROPOSAL

Aug 30th, 2021 (edited)
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. @qbank @qbank_viewquestionname
  2. Feature: Use the qbank plugin manager page for viewquestionname
  3. In order to check the plugin behaviour with enable and disable
  4.  
  5. Background:
  6. Given the following "courses" exist:
  7. | fullname | shortname | category |
  8. | Course 1 | C1 | 0 |
  9. And the following "activities" exist:
  10. | activity | name | course | idnumber |
  11. | quiz | Test quiz | C1 | quiz1 |
  12. And the following "question categories" exist:
  13. | contextlevel | reference | name |
  14. | Course | C1 | Test questions |
  15. And the following "questions" exist:
  16. | questioncategory | qtype | name | questiontext |
  17. | Test questions | truefalse | First question | Answer the first question |
  18.  
  19. Scenario: Enable/disable viewquestionname column from the base view
  20. Given I log in as "admin"
  21. And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
  22. And I should see "View question name question bank feature"
  23. When I click on "Disable" "link" in the "View question name question bank feature" "table_row"
  24. And I am on the "Test quiz" "quiz activity" page
  25. And I navigate to "Question bank > Questions" in current page administration
  26. Then I should not see "First question"
  27. And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
  28. And I click on "Enable" "link" in the "View question name question bank feature" "table_row"
  29. And I am on the "Test quiz" "quiz activity" page
  30. And I navigate to "Question bank > Questions" in current page administration
  31. And I should see "First question"
  32.  
Add Comment
Please, Sign In to add comment