16
16
import com .ericsson .ei .frontend .pageobjects .IndexPage ;
17
17
import com .ericsson .ei .frontend .pageobjects .SubscriptionPage ;
18
18
19
- public class SubscriptionHandlingFunctionality extends SeleniumBaseClass {
19
+ public class TestSubscriptionHandling extends SeleniumBaseClass {
20
20
21
21
@ MockBean
22
22
protected CloseableHttpClient mockedHttpClient ;
@@ -37,7 +37,7 @@ public class SubscriptionHandlingFunctionality extends SeleniumBaseClass {
37
37
private JavascriptExecutor js ;
38
38
39
39
@ Test
40
- public void testSubscription () throws Exception {
40
+ public void testSubscriptionHandlingWithLDAPEnabled () throws Exception {
41
41
// Open index page.
42
42
IndexPage indexPageObject = new IndexPage (mockedHttpClient , driver , baseUrl );
43
43
indexPageObject .loadPage ();
@@ -207,18 +207,18 @@ public void testSubscription() throws Exception {
207
207
subscriptionPage .addFieldValue (userNameID , userName );
208
208
subscriptionPage .addFieldValue (tokenID , token );
209
209
String kvID = "kvID" ;
210
- subscriptionPage .clickKVbtn (kvID );
210
+ subscriptionPage .clickKVbtn (kvID );
211
211
assert (new WebDriverWait (driver , 10 ).until ((webdriver ) -> driver .getPageSource ().contains ("Authorization" )));
212
-
212
+
213
213
// Test "Repeat" dropdown: Select repeat value as "true" and then verify the selected value
214
214
subscriptionPage .selectDropdown (selectRepeatID , repeatValue );
215
215
assert (new WebDriverWait (driver , 10 )
216
216
.until ((webdriver ) -> (subscriptionPage .getValueFromSelectRepeat ().equals (repeatValue ))));
217
-
217
+
218
218
// Test "Add Condition" button: click add condition button and check that it adds an additional "condition" field
219
219
subscriptionPage .clickAddConditionBtn ();
220
220
assertEquals (2 , subscriptionPage .countElements (conditionFieldID ));
221
-
221
+
222
222
// Test "Add Requirement" button: click the button and assert that it adds an additional "requirement" field
223
223
subscriptionPage .clickAddRequirementBtn ();
224
224
assertEquals (2 , subscriptionPage .countElements (requirementFieldID ));
0 commit comments