summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/Repeater1TestCase.php
blob: 983e3b65d8e4b2b0a9d744aff59bd722461050b7 (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&amp;notheme=true&amp;lang=en");

		// verify if all required texts are present
		$this->assertTextPresent('ID','');
		$this->assertTextPresent('Name','');
		$this->assertTextPresent('Quantity','');
		$this->assertTextPresent('Price','');
		$this->assertTextPresent('Imported','');
		$this->assertTextPresent('ITN001','');
		$this->assertTextPresent('Motherboard','');
		$this->assertTextPresent('Yes','');
		$this->assertTextPresent('ITN019','');
		$this->assertTextPresent('Speaker','');
		$this->assertTextPresent('No','');
		$this->assertTextPresent('Computer Parts Inventory','');

		// verify specific table tags
		$this->assertElementPresent("//td[@colspan='5']");
		$this->assertElementPresent("//table[@cellpadding='2']");
	}
}