Source
$overlay = $this->query('xpath://div[@class="overlay-dialogue wordbreak"]')->asOverlayDialog()->waitUntilReady()->one();
<?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/CWebTest.php';
require_once dirname(__FILE__).'/../behaviors/CMessageBehavior.php';
require_once dirname(__FILE__).'/../behaviors/CTableBehavior.php';
require_once dirname(__FILE__).'/../behaviors/CTagBehavior.php';
/**
* @backup sla, profiles
*
* @dataSource Services, Sla
*/
class testPageServicesSla extends CWebTest {
/**
* Attach MessageBehavior, TableBehavior and TagBehavior to the test.
*
* @return array
*/
public function getBehaviors() {
return [
CMessageBehavior::class,
CTableBehavior::class,
CTagBehavior::class
];
}
private static $update_sla = 'Update SLA';
private static $delete_sla = 'SLA для удаления - 頑張って';
public function testPageServicesSla_Layout() {
$sla_data = [
[
'Name' => 'Disabled SLA',
'SLO' => '9.99%',
'Effective date' => '2020-01-01',
'Reporting period' => 'Daily',
'Timezone' => 'America/Nuuk',
'Schedule' => 'Custom',
'SLA report' => '',
'Status' => 'Disabled'
],
[
'Name' => 'Disabled SLA Annual',
'SLO' => '13.01%',
'Effective date' => '2030-12-31',
'Reporting period' => 'Annually',
'Timezone' => 'Pacific/Fiji',
'Schedule' => 'Custom',