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/common/testFormTags.php')
-rw-r--r--ui/tests/selenium/common/testFormTags.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tests/selenium/common/testFormTags.php b/ui/tests/selenium/common/testFormTags.php
index fa306fb1ea0..e951c7efaab 100644
--- a/ui/tests/selenium/common/testFormTags.php
+++ b/ui/tests/selenium/common/testFormTags.php
@@ -257,7 +257,7 @@ class testFormTags extends CWebTest {
case 'item prototype':
$sql = 'SELECT * FROM items ORDER BY itemid';
$locator = 'name:itemForm';
- $fields = ['Name' => $data['name'], 'Key' => 'itemtag_'.microtime(true), 'Type' => 'Zabbix trapper'];
+ $fields = ['Name' => $data['name'], 'Key' => 'itemtag_'.microtime(true).'[{#KEY}]', 'Type' => 'Zabbix trapper'];
break;
case 'web scenario':
@@ -621,7 +621,7 @@ class testFormTags extends CWebTest {
case 'item':
case 'item prototype':
$form = $this->query('name:itemForm')->asForm()->waitUntilPresent()->one();
- $form->fill(['Name' => $new_name, 'Key' => 'newkey_'.microtime(true)]);
+ $form->fill(['Name' => $new_name, 'Key' => 'newkey_'.microtime(true).'[{#KEY}]']);
$sql_old_name = 'SELECT NULL FROM items WHERE name='.zbx_dbstr($this->clone_name);
$sql_new_name = 'SELECT NULL FROM items WHERE name='.zbx_dbstr($new_name);
break;