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/ActiveListBoxMasterTestCase.php | |
parent | 82774aa0a41562a325f31c901584ec01c8238573 (diff) |
Started cleaning tests' selenium2 compatibility layer
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php index 31b80bff..be2bf174 100755 --- a/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php @@ -5,35 +5,35 @@ class ActiveListBoxMasterTestCase extends PradoGenericSelenium2Test function test() { $this->url("active-controls/index.php?page=ActiveListBoxMasterTest"); - $this->assertTextPresent('Active List Box Functional Test'); + $this->assertContains('Active List Box Functional Test', $this->source()); $base = 'ctl0_body_'; $this->assertText("{$base}label1", "Label 1"); - $this->click("{$base}button1"); + $this->byId("{$base}button1")->click(); $this->pause(800); $this->assertEquals($this->getSelectedLabels("{$base}list1"), array('item 2', 'item 3', 'item 4')); - $this->click("{$base}button3"); + $this->byId("{$base}button3")->click(); $this->pause(800); $this->assertEquals($this->getSelectedLabels("{$base}list1"), array('item 1')); - $this->click("{$base}button4"); + $this->byId("{$base}button4")->click(); $this->pause(800); $this->assertEquals($this->getSelectedLabels("{$base}list1"), array('item 5')); - $this->click("{$base}button5"); + $this->byId("{$base}button5")->click(); $this->pause(800); $this->assertEquals($this->getSelectedLabels("{$base}list1"), array('item 2', 'item 5')); - $this->click("{$base}button2"); + $this->byId("{$base}button2")->click(); $this->pause(800); $this->assertNotSomethingSelected("{$base}list1"); - $this->click("{$base}button6"); + $this->byId("{$base}button6")->click(); $this->pause(800); - $this->click("{$base}button1"); + $this->byId("{$base}button1")->click(); $this->pause(800); $this->assertEquals($this->getSelectedLabels("{$base}list1"), array('item 2', 'item 3', 'item 4')); |