$this->zbxTestDropdownHasOptions('label_type_hostgroup', ['Label', 'Element name', 'Status only', 'Nothing', 'Custom label']);
require_once dirname(__FILE__).'/../../include/CLegacyWebTest.php';
require_once dirname(__FILE__).'/../behaviors/CTableBehavior.php';
require_once dirname(__FILE__).'/../behaviors/CMessageBehavior.php';
use Facebook\WebDriver\WebDriverBy;
class testFormSysmap extends CLegacyWebTest {
public function getBehaviors() {
public $mapName = 'Test map 1';
public $edit_map_name = 'Local network';
public static function allMaps() {
return CDBHelper::getDataProvider('SELECT * FROM sysmaps');
public function testFormSysmap_Layout() {
$this->zbxTestLogin('sysmaps.php?form=Create+map');
$this->zbxTestCheckTitle('Configuration of network maps');
$this->zbxTestCheckHeader('Network maps');
$this->zbxTestAssertElementText("//div[@id='userid']//span[@class='subfilter-enabled']", 'Admin (Zabbix Administrator)');
$this->zbxTestAssertElementValue('width', 800);
$this->zbxTestAssertElementValue('height', 600);
$this->zbxTestDropdownAssertSelected('backgroundid', 'No image');
$this->zbxTestDropdownAssertSelected('iconmapid', '<manual>');
$this->assertFalse($this->zbxTestCheckboxSelected('highlight'));