mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Add tests for all of the account actions
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user