summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php')
-rwxr-xr-xtests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php b/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
index d17cf90f..3b594b39 100755
--- a/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
+++ b/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
@@ -6,15 +6,15 @@ class CustomTemplateTestCase extends PradoGenericSelenium2Test
{
$base='ctl0_Content_';
$this->url('active-controls/index.php?page=CustomTemplateControlTest');
- $this->assertTextPresent('Add Dynamic Custom TTemplateControl Test');
+ $this->assertContains('Add Dynamic Custom TTemplateControl Test', $this->source());
$this->assertText("{$base}label1", 'Label 1');
$this->type("{$base}foo", 'Foo Bar!');
- $this->click("{$base}button2");
+ $this->byId("{$base}button2")->click();
$this->pause(800);
$this->assertVisible("{$base}ctl0_ThePanel");
- $this->assertTextPresent("Client ID: {$base}ctl0_ThePanel");
+ $this->assertContains("Client ID: {$base}ctl0_ThePanel", $this->source());
$this->assertText("{$base}label1", 'Button 1 was clicked Foo Bar! using callback!... and this is the textbox text: Foo Bar!');
}