diff options
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')); |