blob: 4d7db9b39ed1a41440b997d9eba0e9a657447b20 (
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
25
26
27
|
<?php
class QuickstartRepeater1TestCase extends PradoGenericSelenium2Test
{
function test()
{
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TRepeater.Sample1&notheme=true&lang=en");
// verify if all required texts are present
$this->assertContains('ID', $this->source());
$this->assertContains('Name', $this->source());
$this->assertContains('Quantity', $this->source());
$this->assertContains('Price', $this->source());
$this->assertContains('Imported', $this->source());
$this->assertContains('ITN001', $this->source());
$this->assertContains('Motherboard', $this->source());
$this->assertContains('Yes', $this->source());
$this->assertContains('ITN019', $this->source());
$this->assertContains('Speaker', $this->source());
$this->assertContains('No', $this->source());
$this->assertContains('Computer Parts Inventory', $this->source());
// verify specific table tags
$this->assertElementPresent("//td[@colspan='5']");
$this->assertElementPresent("//table[@cellpadding='2']");
}
}
|