Add tests for all of the account actions

This commit is contained in:
Dane Everitt 2018-07-15 15:58:24 -07:00
parent be2c76c24a
commit d9a09e92bd
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 243 additions and 24 deletions

View file

@ -8,6 +8,20 @@ use PHPUnit\Framework\Assert as PHPUnit;
class PterodactylBrowser extends Browser
{
/**
* Move the mouse to a specific location and then perform a left click action.
*
* @param int $x
* @param int $y
* @return $this
*/
public function clickPosition(int $x, int $y)
{
$this->driver->getMouse()->mouseMove(null, $x, $y)->click();
return $this;
}
/**
* Perform a case insensitive search for a string in the body.
*