MDL-63094 tool_policy: Fix the cookie banner to the bottom

Floating banners cause issues with clickability in Behat as it is unable
to understand that it cannot interact with the elements underneath the
floating banner, or that it needs to scroll the page so that the
required content is no longer beneath the floating banner.

Changing the banner to be fixed to the bottom of the page during Behat
runes is a reliable fix.
This commit is contained in:
Andrew Nicols 2018-08-09 14:10:59 +08:00
parent 4d1a42fb7c
commit 5ab0e8aae3
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,10 @@
z-index: 9999999;
}
.behat-site .eupopup-container-bottom {
position: relative;
}
.eupopup-container-bottom {
position: fixed;
bottom: 0;

View File

@ -460,7 +460,6 @@ Feature: User must accept policy managed by this plugin when logging in and sign
| This privacy policy | 1 | | full text3 | short text3 | active | loggedin |
| This guests policy | 0 | | full text4 | short text4 | active | guest |
And I am on site homepage
And I change window size to "large"
And I follow "Log in"
When I press "Log in as a guest"
Then I should see "If you continue browsing this website, you agree to our policies"