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

This commit is contained in:
Dan Poltawski
2015-07-07 08:50:40 +01:00
parent 564f346e12
commit c746755c15
6 changed files with 12 additions and 6 deletions
@@ -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">');
}
@@ -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">');
}
+3 -1
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">');
}
@@ -566,7 +566,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
activity.one(SELECTOR.EDITMAXMARK).focus();
});
// This hack is to keep Behat happy until they release a version of
// 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=maxmark')) {
@@ -566,7 +566,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
activity.one(SELECTOR.EDITMAXMARK).focus();
});
// This hack is to keep Behat happy until they release a version of
// 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=maxmark')) {
+1 -1
View File
@@ -344,7 +344,7 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
activity.one(SELECTOR.EDITMAXMARK).focus();
});
// This hack is to keep Behat happy until they release a version of
// 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=maxmark')) {