Source
$overlay = $this->query('xpath://div[@class="overlay-dialogue wordbreak"]')->asOverlayDialog()->waitUntilReady()->one();
<?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/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',
'SLA report' => '',
'Status' => 'Disabled'
],
[
'Name' => 'SLA Annual',
'SLO' => '44.44%',
'Effective date' => '2021-05-01',
'Reporting period' => 'Annually',
'Timezone' => 'Europe/Riga',
'Schedule' => '24x7',
'SLA report' => 'SLA report',
'Status' => 'Enabled'
],
[
'Name' => 'SLA Daily',
'SLO' => '11.111%',
'Effective date' => '2021-05-01',
'Reporting period' => 'Daily',
'Timezone' => 'Europe/Riga',
'Schedule' => '24x7',
'SLA report' => 'SLA report',
'Status' => 'Enabled'
],