1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel;
17
18 import org.junit.Test;
19 import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
20 import org.kuali.rice.testtools.selenium.WebDriverITBase;
21 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
22
23 import static junit.framework.Assert.assertEquals;
24
25
26
27
28
29
30
31 public class WatermarkValidationAft extends WebDriverITBase {
32 @Override
33 public String getTestUrl() {
34 return AutomatedFunctionalTestUtils.PORTAL;
35 }
36
37 @Test
38
39
40
41
42 public void testWatermarking() throws Exception {
43 waitAndClickByLinkText("KRAD");
44 waitAndClickByLinkText(WebDriverLegacyITBase.UIF_COMPONENTS_KITCHEN_SINK_LINK_TEXT);
45 Thread.sleep(5000);
46
47 switchWindow();
48 waitAndClickByLinkText("Text Controls");
49 assertEquals("It's watermarked ",getAttributeByName("field106", "placeholder"));
50 assertEquals("Watermark... ",getAttributeByName("field110", "placeholder"));
51 }
52 }