AutorÃa | Ultima modificación | Ver Log |
@core @turn_edit_mode_on @javascriptFeature: Turn editing mode onUsers should be able to turn editing mode on and offBackground:Given the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com || student1 | Student | 1 | student1@example.com |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |And I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onAnd I turn editing mode offAnd I log outScenario: Edit mode on page GradebookGiven the following "activities" exist:| activity | course | idnumber | name | intro || assign | C1 | assign1 | Test Assignment 1 | Test Assignment 1 |And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"And I turn editing mode onAnd I click on grade item menu "Test Assignment 1" of type "gradeitem" on "grader" pageAnd "Edit grade item" "link" should existAnd I turn editing mode offAnd I click on grade item menu "Test Assignment 1" of type "gradeitem" on "grader" pageThen "Edit grade item" "link" should not existScenario: Edit mode on page HomepageGiven I log in as "admin"And I am on site homepageAnd I turn editing mode onAnd I should see "Add an activity or resource"And I turn editing mode offThen I should not see "Add an activity or resource"Scenario: Edit mode on page Default profileGiven I log in as "admin"And I navigate to "Appearance > Default profile page" in site administrationAnd I turn editing mode onAnd I should see "Add a block"And I turn editing mode offThen I should not see "Add a block"Scenario: Edit mode on page ProfileGiven I log in as "admin"And I follow "View profile"And I turn editing mode onAnd I should see "Add a block"And I turn editing mode offThen I should not see "Add a block"Scenario: Edit mode on page Default dashboardGiven I log in as "admin"And I navigate to "Appearance > Default Dashboard page" in site administrationAnd I turn editing mode onAnd I should see "Add a block"And I turn editing mode offThen I should not see "Add a block"Scenario: Edit mode on page DashboardAnd I log in as "teacher1"And I turn editing mode onAnd I should see "Add a block"Then I turn editing mode offThen I should not see "Add a block"