for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Magefix\Plugin;
use Behat\Mink\Driver\DriverInterface;
/**
* Class WindowResizer
*
* @package Magefix\Plugin
* @author Carlo Tasca <[email protected]>
*/
trait WindowResizer
{
private $desktopWidth = 1920;
private $desktopHeight = 1080;
private $mobileWidth = 320;
private $mobileHeight = 568;
* Resize window to desktop size
* @param DriverInterface $driver
public function resizeToDesktopWindow(DriverInterface $driver)
$driver->resizeWindow($this->desktopWidth, $this->desktopHeight);
}
* Resize window to mobile size
public function resizeToMobileWindow(DriverInterface $driver)