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

		// verify if all required texts are present
		$this->assertContains('ITN001', $this->source());
		$this->assertContains('$100', $this->source());
		$this->assertContains('Motherboard', $this->source());
		$this->assertContains('ITN018', $this->source());
		$this->assertContains('Surge protector', $this->source());
		$this->assertContains('45', $this->source());
		$this->assertContains('$15', $this->source());
		$this->assertContains('Total 19 products.', $this->source());
		$this->assertContains('Computer Parts', $this->source());

		// verify specific table tags
		$this->assertElementPresent("ctl0_body_DataList");
		$this->assertElementPresent("//td[@align='right']");
	}
}