* @return {Promise}
*/
function confirmDeletion(eventId, eventTitle, eventCount) {
+ var pendingPromise = new Pending('core_calendar/crud:confirmDeletion');
var deleteStrings = [
{
key: 'deleteevent',
return deleteModal;
})
+ .then(function(modal) {
+ pendingPromise.resolve();
+
+ return modal;
+ })
.catch(Notification.exception);
return finalPromise;
*/
var ModalDelete = function(root) {
Modal.call(this, root);
+
+ this.setRemoveOnClose(true);
};
ModalDelete.TYPE = 'core_calendar-modal_delete';
And I should see "The changes to the grade and feedback were saved"
And I press "Ok"
And I follow "View a different attempt"
- And I click on "//div[contains(@class, 'moodle-dialogue-bd')]//label[2]" "xpath_element"
+ And I click on "Attempt 1" "radio" in the "View a different attempt" "dialogue"
And I press "View"
And I wait until the page is ready
And I should see "You are editing the feedback for a previous attempt. This is attempt 1 out of 2."
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 2" "table_row"
And I click on "View a different attempt" "link"
- And I click on "//div[contains(concat(' ', normalize-space(@class), ' '), ' confirmation-dialogue ')]//input[@value='0']" "xpath_element"
+ And I click on "Attempt 1" "radio" in the "View a different attempt" "dialogue"
And I click on "View" "button"
And I set the following fields to these values:
| Grade | 50 |
And I follow "Default collection"
And I click on "Delete" "link" in the "Turtle" "table_row"
Then I should see "Are you sure you want to delete this tag?"
- And I press "No"
+ And I click on "Cancel" "button" in the "Delete" "dialogue"
And I should not see "Tag(s) deleted"
And I should see "Turtle"
And I click on "Delete" "link" in the "Dog" "table_row"
| Select tag Cat | 1 |
And I press "Delete selected"
And I should see "Are you sure you want to delete selected tags?"
- And I press "No"
+ And I click on "Cancel" "button" in the "Delete" "dialogue"
And I should not see "Tag(s) deleted"
And I should see "Cat"
And I set the following fields to these values: