MDL-73340 behat: add mobile and table size

This commit is contained in:
Ferran Recio
2022-01-14 18:49:06 +01:00
parent 72321cff3f
commit 81b0bbe8cb
3 changed files with 45 additions and 6 deletions
+12 -2
View File
@@ -739,8 +739,10 @@ trait behat_session_trait {
/**
* Change browser window size.
* - small: 640x480
* - medium: 1024x768
* - mobile: 425x750
* - tablet: 768x1024
* - small: 1024x768
* - medium: 1366x768
* - large: 2560x1600
*
* @param string $windowsize size of window.
@@ -756,6 +758,14 @@ trait behat_session_trait {
}
switch ($windowsize) {
case "mobile":
$width = 425;
$height = 750;
break;
case "tablet":
$width = 768;
$height = 1024;
break;
case "small":
$width = 1024;
$height = 768;