blob: 10786e7d1fcf17cd195be5d6bfe84fe209692636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
class QuickstartDataList1TestCase extends PradoGenericSelenium2Test
{
function test()
{
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TDataList.Sample1&notheme=true&lang=en");
// verify if all required texts are present
$this->assertSourceContains('ITN001');
$this->assertSourceContains('$100');
$this->assertSourceContains('Motherboard');
$this->assertSourceContains('ITN018');
$this->assertSourceContains('Surge protector');
$this->assertSourceContains('45');
$this->assertSourceContains('$15');
$this->assertSourceContains('Total 19 products.');
$this->assertSourceContains('Computer Parts');
// verify specific table tags
$this->assertElementPresent("ctl0_body_DataList");
$this->assertElementPresent("//td[@align='right']");
}
}
|