zbxTestLogin('hostinventories.php'); $this->query('button:Reset')->one()->click(); $this->zbxTestCheckTitle('Host inventory'); $this->zbxTestCheckHeader('Host inventory'); $this->zbxTestTextPresent('Displaying'); $this->zbxTestTextPresent( ['Host', 'Group', 'Name', 'Type', 'OS', 'Serial number A', 'Tag', 'MAC address A'] ); $this->zbxTestTextPresent([ $data['hostname'], $data['name'], $data['type'], $data['os'], $data['serialno_a'], $data['tag'], $data['macaddress_a'] ]); } /** * @dataProvider allInventory */ public function testPageInventory_ViewInventory($data) { $this->zbxTestLogin('hostinventories.php?hostid='.$data['hostid']); $this->zbxTestCheckTitle('Host inventory'); $this->zbxTestClick('tab_detailsTab'); unset($data['hostid'], $data['hostname']); $this->zbxTestTextPresent($data); $this->zbxTestClickWait('cancel'); $this->zbxTestCheckTitle('Host inventory'); $this->zbxTestCheckHeader('Host inventory'); } }