MDL-73340 behat: add mobile and table size
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user