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
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tests/selenium/testFormAdministrationGeneralAutoregistration.php')
-rw-r--r--ui/tests/selenium/testFormAdministrationGeneralAutoregistration.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/tests/selenium/testFormAdministrationGeneralAutoregistration.php b/ui/tests/selenium/testFormAdministrationGeneralAutoregistration.php
index 8ca1915656a..ea2e2a7bd55 100644
--- a/ui/tests/selenium/testFormAdministrationGeneralAutoregistration.php
+++ b/ui/tests/selenium/testFormAdministrationGeneralAutoregistration.php
@@ -18,6 +18,7 @@
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
+
require_once dirname(__FILE__) . '/../include/CWebTest.php';
/**
@@ -162,7 +163,17 @@ class testFormAdministrationGeneralAutoregistration extends CWebTest {
// Check Audit record about autoregistration update.
$this->page->open('zabbix.php?action=auditlog.list');
+
+ // Click on Filter tab if it is not selected.
+ if ($this->query('xpath://li[@aria-labelledby="ui-id-2" and @aria-selected="false"]')->exists()) {
+ $this->query('id:ui-id-2')->one()->click();
+ }
+
+ // Reset filter to delete deependencies from previous tests.
+ $this->query('button:Reset')->waitUntilClickable()->one()->click();
+ $this->page->waitUntilReady();
$rows = $this->query('class:list-table')->asTable()->one()->getRows();
+
// Get first row data.
$row = $rows->get(0);
foreach ($data['audit'] as $column => $value) {