summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket595TestCase.php
blob: 27d57a91a1a82bdcda1c2deb844953637163a092 (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
28
29
30
31
32
33
34
35
36
37
<?php

class Ticket595TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base="ctl0_Content_";
		$this->url('tickets/index.php?page=Ticket595');
		$this->assertEquals($this->title(), "Verifying Ticket 595");

		$this->byId($base.'ctl2')->click();
        $this->assertAttribute($base.'A@class','errorclassA');

		$this->type($base.'A', 'Prado');
		$this->byId($base.'ctl2')->click();
        $this->assertAttribute($base.'A@class','errorclassA');

		$this->type($base.'A', 'test@pradosoft.com');
		$this->byId($base.'ctl2')->click();
		$this->pause(800);
        $this->assertAttribute($base.'A@class','');

		$this->byId($base.'ctl5')->click();
		$this->pause(800);
        $this->assertAttribute($base.'B@class',' errorclassB');

		$this->type($base.'B', 'Prado');
		$this->byId($base.'ctl5')->click();
		$this->pause(800);
        $this->assertAttribute($base.'B@class',' errorclassB');

		$this->type($base.'B', 'test@pradosoft.com');
		$this->byId($base.'ctl5')->click();
		$this->pause(800);
        $this->assertAttribute($base.'B@class','');
	}
}