__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@mod @mod_feedback
Feature: Managing feedback questions
  In order to manage feedback questions
  As a teacher
  I need to be able to create, edit and delete feedback questions

  Background:
    Given the following "users" exist:
      | username | firstname | lastname |
      | teacher  | Teacher   | 1        |
    And the following "courses" exist:
      | fullname | shortname |
      | Course 1 | C1        |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher  | C1     | editingteacher |
    And the following "activities" exist:
      | activity   | name                         | course | idnumber    |
      | feedback   | Learning experience course 1 | C1     | feedback1   |

  Scenario: Teacher can create a new feedback question
    Given I am on the "Learning experience course 1" "feedback activity" page logged in as teacher
    And I click on "Edit questions" "link" in the "region-main" "region"
    When I add a "Short text answer" question to the feedback with:
      | Question         | Is it me you're looking for? |
      | Label            | q1                           |
    Then I should see "(q1) Is it me you're looking for?"

  @javascript
  Scenario: Teacher can edit feedback questions
    Given I am on the "Learning experience course 1" "feedback activity" page logged in as teacher
    And I click on "Edit questions" "link" in the "region-main" "region"
    And I add a "Short text answer" question to the feedback with:
      | Question         | Is it me you're looking for? |
      | Label            | q1                           |
    When I open the action menu in "Is it me you're looking for?" "mod_feedback > Question"
    And I choose "Edit question" in the open action menu
    And I set the field "Question" to "Can you see it in my eyes?"
    And I press "Save changes to question"
    Then I should see "(q1) Can you see it in my eyes?"
    And I should not see "(q1) Is it me you're looking for?"

  @javascript
  Scenario: Teacher can edit and save as new feedback questions
    Given I am on the "Learning experience course 1" "feedback activity" page logged in as teacher
    And I click on "Edit questions" "link" in the "region-main" "region"
    And I add a "Short text answer" question to the feedback with:
      | Question         | Is it me you're looking for? |
      | Label            | q1                           |
    When I open the action menu in "Is it me you're looking for?" "mod_feedback > Question"
    And I choose "Edit question" in the open action menu
    And I set the field "Question" to "You can se it in my eyes?"
    And I press "Save as new question"
    Then I should see "(q1) Is it me you're looking for?"
    And I should see "(q1) You can se it in my eyes?"

  @javascript
  Scenario: Teacher can delete feedback questions
    Given I am on the "Learning experience course 1" "feedback activity" page logged in as teacher
    And I click on "Edit questions" "link" in the "region-main" "region"
    And I add a "Short text answer" question to the feedback with:
      | Question         | Is it me you're looking for? |
      | Label            | q1                           |
    When I open the action menu in "Is it me you're looking for?" "mod_feedback > Question"
    And I choose "Delete question" in the open action menu
    And I click on "Yes" "button" in the "Confirmation" "dialogue"
    Then I should not see "(q1) Is it me you're looking for?"

  @javascript
  Scenario: Teacher can mark as required feedback questions
    Given I am on the "Learning experience course 1" "feedback activity" page logged in as teacher
    And I click on "Edit questions" "link" in the "region-main" "region"
    And I add a "Short text answer" question to the feedback with:
      | Question         | Is it me you're looking for? |
      | Label            | q1                           |
      | Required         | 0                            |
    When I open the action menu in "Is it me you're looking for?" "mod_feedback > Question"
    And I choose "Set as required" in the open action menu
    And I open the action menu in "Is it me you're looking for?" "mod_feedback > Question"
    And I choose "Edit question" in the open action menu
    Then the field "Required" matches value "1"
    And I press "Cancel"
    And I open the action menu in "Is it me you're looking for?" "mod_feedback > Question"
    And I choose "Set as not required" in the open action menu
    And I open the action menu in "Is it me you're looking for?" "mod_feedback > Question"
    And I choose "Edit question" in the open action menu
    And the field "Required" matches value "0"

Filemanager

Name Type Size Permission Actions
anonymous.feature File 11.23 KB 0777
behat_mod_feedback.php File 10.35 KB 0777
coursemapping.feature File 11.22 KB 0777
export_import.feature File 6.37 KB 0777
feedback_activity_completion.feature File 3.49 KB 0777
feedback_no_calendar_capabilities.feature File 2.04 KB 0777
groups.feature File 14.58 KB 0777
multichoice.feature File 21.46 KB 0777
multipleattempt.feature File 2.45 KB 0777
non_anonymous.feature File 7.22 KB 0777
preview_questions.feature File 2.17 KB 0777
question_types.feature File 6.89 KB 0777
question_types_non_anon.feature File 7.21 KB 0777
questions.feature File 4.61 KB 0777
show_nonrespondents.feature File 2.71 KB 0777
templates.feature File 9.97 KB 0777
Filemanager