MDL-50749 course: add fake element for behat compatibility

This commit is contained in:
Charles Fulton
2015-07-03 19:54:45 +00:00
parent c948f378b9
commit e50d52bd3a
4 changed files with 17 additions and 1 deletions
@@ -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
View File
@@ -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">');
}
},
/**