Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorSergejs Maklakovs <sergejs.maklakovs@zabbix.com>2022-03-07 11:44:45 +0300
committerSergejs Maklakovs <sergejs.maklakovs@zabbix.com>2022-03-07 11:44:45 +0300
commitc0dc6f8a4b882062dc9090b28f9e2b071e24a1ef (patch)
tree96d8a745e1c194af4eb01b78bd77e1c2fd83330d /ui
parentddaafab68dfaffb4bdbd8e271aa452ded85c03b0 (diff)
.......... [ZBXNEXT-686] fixed xpath for hint in geomap page test
Diffstat (limited to 'ui')
-rw-r--r--ui/tests/selenium/dashboard/testDashboardGeomapWidget.php2
-rw-r--r--ui/tests/selenium/geomaps/testFormAdministrationGeneralGeomaps.php2
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();