summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators
diff options
context:
space:
mode:
authorxue <>2006-06-02 17:52:02 +0000
committerxue <>2006-06-02 17:52:02 +0000
commita3c0634e2ae3aac209cf6d645df4b1791a745542 (patch)
treecf1370d4c6a76f73ba6f05cfc5dafdd3aa180abd /tests/FunctionalTests/validators
parent839901fda36fd734af6b86e17d11696679429fe9 (diff)
Fix of some FT due to the change of selenium.
Diffstat (limited to 'tests/FunctionalTests/validators')
-rw-r--r--tests/FunctionalTests/validators/tests/RequiredListTestCase.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/FunctionalTests/validators/tests/RequiredListTestCase.php b/tests/FunctionalTests/validators/tests/RequiredListTestCase.php
index cb10f201..23e0f045 100644
--- a/tests/FunctionalTests/validators/tests/RequiredListTestCase.php
+++ b/tests/FunctionalTests/validators/tests/RequiredListTestCase.php
@@ -7,14 +7,13 @@ class RequiredListTestCase extends SeleniumTestCase
{
$base = "ctl0_Content_";
$this->open("validators/index.php?page=RequiredListValidator");
- $this->assertLocation("index.php?page=RequiredListValidator");
$this->click("{$base}submit1");
$this->assertVisible("{$base}validator1");
$this->assertVisible("{$base}validator2");
$this->assertVisible("{$base}validator3");
$this->click("{$base}list1_c0");
- $this->select("{$base}list2", "label=One");
- $this->select("{$base}list2", "label=Two");
+ $this->addSelection("{$base}list2", "label=One");
+ $this->addSelection("{$base}list2", "label=Two");
$this->click("{$base}list3_c3");
$this->clickAndWait("{$base}submit1");
$this->assertNotVisible("{$base}validator1");
@@ -23,14 +22,14 @@ class RequiredListTestCase extends SeleniumTestCase
$this->click("{$base}list1_c1");
$this->click("{$base}list1_c2");
$this->click("{$base}list1_c3");
- $this->select("{$base}list2", "label=Two");
+ $this->addSelection("{$base}list2", "label=Two");
$this->click("{$base}list1_c3");
- $this->click("{$base}submit1");
+ $this->clickAndWait("{$base}submit1");
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
$this->assertNotVisible("{$base}validator3");
$this->click("{$base}list3_c3");
- $this->click("{$base}submit1");
+ $this->clickAndWait("{$base}submit1");
$this->pause(200);
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");