Source
$this->zbxTestAssertElementText('//div[@data-hintboxid]', 'Suppressed till: 12:17 Maintenance: Maintenance for suppression test');
<?php
/*
** Zabbix
** 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 General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
require_once dirname(__FILE__).'/../../include/CLegacyWebTest.php';
require_once dirname(__FILE__).'/../behaviors/CTableBehavior.php';
require_once dirname(__FILE__).'/../behaviors/CTagBehavior.php';
use Facebook\WebDriver\WebDriverBy;
/**
* @backup profiles
*/
class testPageProblems extends CLegacyWebTest {
/**
* Attach TagBehavior and TableBehavior to the test.
*
* @return array
*/
public function getBehaviors() {
return [
CTableBehavior::class,
[
'class' => CTagBehavior::class,
'tag_selector' => 'id:filter-tags_0'
]
];
}
public function testPageProblems_CheckLayout() {
$this->zbxTestLogin('zabbix.php?action=problem.view');
$this->zbxTestCheckTitle('Problems');
$this->zbxTestCheckHeader('Problems');
$this->assertTrue($this->zbxTestCheckboxSelected('show_10'));
$this->zbxTestTextPresent(['Show', 'Host groups', 'Host', 'Triggers', 'Problem', 'Not classified',
'Information', 'Warning', 'Average', 'High', 'Disaster', 'Age less than', 'Host inventory', 'Tags',
'Show suppressed problems', 'Show unacknowledged only', 'Severity', 'Time', 'Recovery time', 'Status', 'Host',
'Problem', 'Duration', 'Ack', 'Actions', 'Tags']);
$this->zbxTestCheckNoRealHostnames();
}
public function testPageProblems_History_CheckLayout() {
$this->zbxTestLogin('zabbix.php?action=problem.view');
$this->zbxTestCheckHeader('Problems');