Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/Meet/Room.php
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | class Room extends Page | ||||
* @param string $button Button name | * @param string $button Button name | ||||
* @param int $state Expected button state (sum of BUTTON_* consts) | * @param int $state Expected button state (sum of BUTTON_* consts) | ||||
*/ | */ | ||||
public function assertToolbarButtonState($browser, $button, $state): void | public function assertToolbarButtonState($browser, $button, $state): void | ||||
{ | { | ||||
$class = ''; | $class = ''; | ||||
if ($state & self::BUTTON_ACTIVE) { | if ($state & self::BUTTON_ACTIVE) { | ||||
$class .= ':not(.text-danger)'; | $class .= '.on'; | ||||
} | } | ||||
if ($state & self::BUTTON_INACTIVE) { | if ($state & self::BUTTON_INACTIVE) { | ||||
$class .= '.text-danger'; | $class .= ':not(.on)'; | ||||
} | } | ||||
if ($state & self::BUTTON_DISABLED) { | if ($state & self::BUTTON_DISABLED) { | ||||
$class .= '[disabled]'; | $class .= '[disabled]'; | ||||
} | } | ||||
if ($state & self::BUTTON_ENABLED) { | if ($state & self::BUTTON_ENABLED) { | ||||
$class .= ':not([disabled])'; | $class .= ':not([disabled])'; | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |