diff options
author | Sergejs Maklakovs <sergejs.maklakovs@zabbix.com> | 2022-03-07 11:44:45 +0300 |
---|---|---|
committer | Sergejs Maklakovs <sergejs.maklakovs@zabbix.com> | 2022-03-07 11:44:45 +0300 |
commit | c0dc6f8a4b882062dc9090b28f9e2b071e24a1ef (patch) | |
tree | 96d8a745e1c194af4eb01b78bd77e1c2fd83330d /ui | |
parent | ddaafab68dfaffb4bdbd8e271aa452ded85c03b0 (diff) |
.......... [ZBXNEXT-686] fixed xpath for hint in geomap page test
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tests/selenium/dashboard/testDashboardGeomapWidget.php | 2 | ||||
-rw-r--r-- | ui/tests/selenium/geomaps/testFormAdministrationGeneralGeomaps.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/tests/selenium/dashboard/testDashboardGeomapWidget.php b/ui/tests/selenium/dashboard/testDashboardGeomapWidget.php index 59a46d74ca7..ef7743f4ae3 100644 --- a/ui/tests/selenium/dashboard/testDashboardGeomapWidget.php +++ b/ui/tests/selenium/dashboard/testDashboardGeomapWidget.php @@ -177,7 +177,7 @@ class testDashboardGeomapWidget extends CWebTest { "\nThe maximum zoom level is \"0\".". "\nInitial view is ignored if the default view is set."; - $form->query('xpath:.//label[text()="Initial view"]//a')->one()->click(); + $form->query('xpath:.//label[text()="Initial view"]/a')->one()->click(); $hint = $this->query('xpath://div[@data-hintboxid]')->waitUntilPresent(); $this->assertEquals($hint_text, $hint->one()->getText()); $hint->one()->query('xpath:.//button[@class="overlay-close-btn"]')->one()->click(); diff --git a/ui/tests/selenium/geomaps/testFormAdministrationGeneralGeomaps.php b/ui/tests/selenium/geomaps/testFormAdministrationGeneralGeomaps.php index c6c1ca39b33..46b92a41c23 100644 --- a/ui/tests/selenium/geomaps/testFormAdministrationGeneralGeomaps.php +++ b/ui/tests/selenium/geomaps/testFormAdministrationGeneralGeomaps.php @@ -139,7 +139,7 @@ class testFormAdministrationGeneralGeomaps extends CWebTest { ]; foreach ($hintboxes as $field => $text) { - $form->query('xpath:.//label[text()='.CXPathHelper::escapeQuotes($field).']//span')->one()->click(); + $form->query('xpath:.//label[text()='.CXPathHelper::escapeQuotes($field).']/a')->one()->click(); $hint = $this->query('xpath://div[@class="overlay-dialogue"]')->waitUntilPresent()->one(); $this->assertEquals($text, $hint->getText()); $hint->asOverlayDialog()->close(); |