MDL-50749 course: add fake element for behat compatibility
This commit is contained in:
@@ -869,6 +869,11 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||
Y.later(100, this, function() {
|
||||
activity.one(SELECTOR.EDITTITLE).focus();
|
||||
});
|
||||
|
||||
// Hack for Behat compatibility.
|
||||
if (!Y.one('input[name=title]')) {
|
||||
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -869,6 +869,11 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||
Y.later(100, this, function() {
|
||||
activity.one(SELECTOR.EDITTITLE).focus();
|
||||
});
|
||||
|
||||
// Hack for Behat compatibility.
|
||||
if (!Y.one('input[name=title]')) {
|
||||
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
+5
@@ -665,6 +665,11 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
|
||||
Y.later(100, this, function() {
|
||||
activity.one(SELECTOR.EDITTITLE).focus();
|
||||
});
|
||||
|
||||
// Hack for Behat compatibility.
|
||||
if (!Y.one('input[name=title]')) {
|
||||
Y.one('body').append('<input type="text" name="title" style="display: none">');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user