summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/Repeater1TestCase.php
blob: de027da416628fd4921b7af333dd852d1055cf24 (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->assertSourceContains('ID');
		$this->assertSourceContains('Name');
		$this->assertSourceContains('Quantity');
		$this->assertSourceContains('Price');
		$this->assertSourceContains('Imported');
		$this->assertSourceContains('ITN001');
		$this->assertSourceContains('Motherboard');
		$this->assertSourceContains('Yes');
		$this->assertSourceContains('ITN019');
		$this->assertSourceContains('Speaker');
		$this->assertSourceContains('No');
		$this->assertSourceContains('Computer Parts Inventory');

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