MDL-54589 behat: Don't allow floating headers for behat

This commit is contained in:
Rajesh Taneja
2016-06-20 16:03:12 +08:00
parent 86e079521b
commit 315c9ba2d4
5 changed files with 18 additions and 5 deletions
@@ -47,8 +47,6 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
And the following config values are set as admin:
| grade_report_showaverages | 0 |
| grade_report_enableajax | 1 |
# Floating headers can fail to set value on some OS/Browsers, so do this test on large screens.
And I change window size to "large"
@javascript
Scenario: Use the grader report without editing, with AJAX on and quick feedback off
@@ -402,6 +402,11 @@ FloatingHeaders.prototype = {
return this;
}
if (M.cfg.behatsiterunning) {
// If the behat site is running we don't want floating elements.
return;
}
// Generate floating elements.
this._setupFloatingUserColumn();
this._setupFloatingUserHeader();
File diff suppressed because one or more lines are too long
@@ -402,6 +402,11 @@ FloatingHeaders.prototype = {
return this;
}
if (M.cfg.behatsiterunning) {
// If the behat site is running we don't want floating elements.
return;
}
// Generate floating elements.
this._setupFloatingUserColumn();
this._setupFloatingUserHeader();
@@ -259,6 +259,11 @@ FloatingHeaders.prototype = {
return this;
}
if (M.cfg.behatsiterunning) {
// If the behat site is running we don't want floating elements.
return;
}
// Generate floating elements.
this._setupFloatingUserColumn();
this._setupFloatingUserHeader();