diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-03-05 23:02:18 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-03-05 23:02:18 +0100 |
commit | 4ce02f6973aa40c313364b5ff7990f2244309790 (patch) | |
tree | 4e55faa0ff1ae31adcd3845cc94fe384fafa29ee /tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php | |
parent | 82774aa0a41562a325f31c901584ec01c8238573 (diff) |
Started cleaning tests' selenium2 compatibility layer
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php index 2aedee05..d4b82068 100755 --- a/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php @@ -9,14 +9,14 @@ class ActiveHiddenFieldTestCase extends PradoGenericSelenium2Test $fieldEmpty = 'No longer empty'; $fieldUsed = 'My value'; - $this->assertTextPresent('Value of current hidden field'); - $this->click("{$base}Button1"); + $this->assertContains('Value of current hidden field', $this->source()); + $this->byId("{$base}Button1")->click(); $this->pause(800); $this->assertText("{$base}ResponseLabel", $fieldEmpty); - $this->click("{$base}Button2"); + $this->byId("{$base}Button2")->click(); $this->pause(800); $this->assertText("{$base}ResponseLabel", $fieldUsed); - $this->click("{$base}Button3"); + $this->byId("{$base}Button3")->click(); $this->pause(800); $this->assertText("{$base}ResponseLabel", $fieldEmpty.'|'.$fieldUsed); } |