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

This commit is contained in:
Rajesh Taneja 2016-06-14 06:37:12 +08:00
parent fba0ac63b8
commit 6a51c58542
5 changed files with 18 additions and 5 deletions

View File

@ -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

View File

@ -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();

View File

@ -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();

View File

@ -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();