MDL-50749 js: add some TODOs to some small hacks

This commit is contained in:
Dan Poltawski 2015-07-07 08:45:23 +01:00
parent da24257a3b
commit f79860257a
6 changed files with 12 additions and 6 deletions

View file

@ -870,7 +870,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
activity.one(SELECTOR.EDITTITLE).focus();
});
// Hack for Behat compatibility.
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
// MinkSelenium2Driver that fixes
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
if (!Y.one('input[name=title]')) {
Y.one('body').append('<input type="text" name="title" style="display: none">');
}

View file

@ -870,7 +870,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
activity.one(SELECTOR.EDITTITLE).focus();
});
// Hack for Behat compatibility.
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
// MinkSelenium2Driver that fixes
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
if (!Y.one('input[name=title]')) {
Y.one('body').append('<input type="text" name="title" style="display: none">');
}

View file

@ -666,7 +666,9 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
activity.one(SELECTOR.EDITTITLE).focus();
});
// Hack for Behat compatibility.
// TODO MDL-50768 This hack is to keep Behat happy until they release a version of
// MinkSelenium2Driver that fixes
// https://github.com/Behat/MinkSelenium2Driver/issues/80.
if (!Y.one('input[name=title]')) {
Y.one('body').append('<input type="text" name="title" style="display: none">');
}