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 'frontends/php/tests/include/CLegacyWebTest.php')
-rw-r--r--frontends/php/tests/include/CLegacyWebTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/tests/include/CLegacyWebTest.php b/frontends/php/tests/include/CLegacyWebTest.php
index cf8988d8238..c6e90d9cc1f 100644
--- a/frontends/php/tests/include/CLegacyWebTest.php
+++ b/frontends/php/tests/include/CLegacyWebTest.php
@@ -257,7 +257,7 @@ class CLegacyWebTest extends CWebTest {
public function zbxTestMultiselectNew($id, $string) {
$xpath = 'xpath://div[contains(@class, "multiselect") and @id="'.$id.'"]/input';
- $this->query($xpath)->one()->clear()->sendKeys($string);
+ $this->query($xpath)->one()->overwrite($string);
$this->zbxTestClickXpathWait(
"//div[contains(@class, 'multiselect') and @id='$id']/div[@class='available']".
"/ul[@class='multiselect-suggest']/li[@data-id='$string']"
@@ -435,7 +435,7 @@ class CLegacyWebTest extends CWebTest {
}
public function zbxTestAssertAttribute($xpath, $attribute, $value = 'true') {
- $this->assertEquals($this->query('xpath:'.$xpath)->one()->getAttribute($attribute), $value);
+ $this->assertEquals($value, $this->query('xpath:'.$xpath)->one()->getAttribute($attribute));
}
public function zbxTestAssertElementNotPresentId($id) {
@@ -708,6 +708,7 @@ class CLegacyWebTest extends CWebTest {
"/option[@value='{$value}']";
$this->zbxTestClickXpathWait($xpath);
+ $this->zbxTestWaitForPageToLoad();
}
/**