summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php
blob: ebb60ca94a31f47e829b549fd290d7e067c5d23f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

class Ticket274TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base = 'ctl0_Content_';
		$this->url('tickets/index.php?page=Ticket274');
		$this->assertEquals($this->title(), 'Verifying Ticket 274');
		$this->assertNotVisible($base.'validator1');
		$this->assertNotVisible($base.'validator2');

		$this->byId($base.'button1')->click();
		$this->assertVisible($base.'validator1');
		$this->assertNotVisible($base.'validator2');

		$this->type($base.'MyDate', 'asd');
		$this->byId($base.'button1')->click();
		$this->assertNotVisible($base.'validator1');
		$this->assertVisible($base.'validator2');
	}
}