Source
$this->assertEquals(65535, $operation_details->getField('id:operation_opmessage_message')->waitUntilVisible()->getAttribute('maxlength'));
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
require_once dirname(__FILE__).'/../../include/CLegacyWebTest.php';
require_once dirname(__FILE__).'/../../include/helpers/CDataHelper.php';
require_once dirname(__FILE__).'/../behaviors/CMessageBehavior.php';
define('ACTION_GOOD', 0);
define('ACTION_BAD', 1);
use Facebook\WebDriver\WebDriverBy;
/**
* @backup actions, profiles
*
* @dataSource Actions
*/
class testFormAction extends CLegacyWebTest {
protected $event_sources = [
EVENT_SOURCE_TRIGGERS => 'Trigger actions',
EVENT_SOURCE_SERVICE => 'Service actions',
EVENT_SOURCE_DISCOVERY => 'Discovery actions',
EVENT_SOURCE_AUTOREGISTRATION => 'Autoregistration actions',
EVENT_SOURCE_INTERNAL => 'Internal actions'
];
const SERVICE_ACTION = 'Service action';
/**
* Attach MessageBehavior to the test.
*
* @return array
*/
public function getBehaviors() {
return ['class' => CMessageBehavior::class];
}
public static function layout() {
return [
[
[
'eventsource' => EVENT_SOURCE_TRIGGERS,
'recovery_msg' => true,
'acknowledge_msg' => true
]
],
[
[
'eventsource' => EVENT_SOURCE_TRIGGERS,