1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.samplu.travel.krad.test;
18
19 import edu.samplu.common.ITUtil;
20 import edu.samplu.common.WebDriverLegacyITBase;
21
22 import org.junit.Test;
23
24
25
26
27
28
29 public class ConfigurationTestViewNavIT extends WebDriverLegacyITBase {
30
31 @Override
32 public String getTestUrl() {
33 return ITUtil.PORTAL;
34 }
35
36
37 private String idPrefix = "ConfigurationTestView-ProgressiveRender-";
38
39
40 String addLineIdSuffix = "InputField_add_control";
41
42
43
44
45 protected void openConfigurationTestView() throws InterruptedException {
46 waitAndClickKRAD();
47 waitAndClickByXpath("(//a[text()='Configuration Test View'])[2]");
48 switchToWindow(CONFIGURATION_VIEW_WINDOW_TITLE);
49 waitForTitleToEqualKualiPortalIndex();
50 }
51
52
53
54
55
56 @Test
57 public void testConfigurationTestView() throws Exception {
58 openConfigurationTestView();
59 super.testConfigurationTestView(idPrefix);
60 passed();
61 }
62
63
64
65
66
67 @Test
68 public void testAddLineWithSpecificTime() throws Exception{
69 openConfigurationTestView();
70 super.testAddLineWithSpecificTime(idPrefix, addLineIdSuffix);
71 passed();
72 }
73
74
75
76
77
78 @Test
79 public void testAddLineWithAllDay() throws Exception {
80 openConfigurationTestView();
81 super.testAddLineWithAllDay(idPrefix, addLineIdSuffix);
82 passed();
83 }
84
85
86
87
88
89 @Test
90 public void testAddLineAllDay() throws Exception{
91 openConfigurationTestView();
92 super.testAddLineAllDay(idPrefix, addLineIdSuffix);
93 passed();
94 }
95 }