mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-54589 behat: Don't allow floating headers for behat
This commit is contained in:
parent
fba0ac63b8
commit
6a51c58542
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user