Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Components/Toast.php
<?php | <?php | ||||
namespace Tests\Browser\Components; | namespace Tests\Browser\Components; | ||||
use Facebook\WebDriver\WebDriverBy; | use Facebook\WebDriver\WebDriverBy; | ||||
use Laravel\Dusk\Component as BaseComponent; | use Laravel\Dusk\Component as BaseComponent; | ||||
use PHPUnit\Framework\Assert as PHPUnit; | use PHPUnit\Framework\Assert as PHPUnit; | ||||
class Toast extends BaseComponent | class Toast extends BaseComponent | ||||
{ | { | ||||
public const TYPE_ERROR = 'error'; | public const TYPE_ERROR = 'error'; | ||||
public const TYPE_SUCCESS = 'success'; | public const TYPE_SUCCESS = 'success'; | ||||
public const TYPE_WARNING = 'warning'; | public const TYPE_WARNING = 'warning'; | ||||
public const TYPE_INFO = 'info'; | public const TYPE_INFO = 'info'; | ||||
public const TYPE_CUSTOM = 'custom'; | |||||
protected $type; | protected $type; | ||||
protected $element; | protected $element; | ||||
public function __construct($type) | public function __construct($type) | ||||
{ | { | ||||
$this->type = $type; | $this->type = $type; | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |