@@ -204,29 +204,31 @@ public void testSubscription() throws Exception {
204
204
String requirementFieldID = "requirementID" ;
205
205
206
206
subscriptionPage .selectDropdown (selectAuthID , authValue );
207
-
208
207
subscriptionPage .addFieldValue (userNameID , userName );
209
208
subscriptionPage .addFieldValue (tokenID , token );
210
209
String kvID = "kvID" ;
211
- subscriptionPage .clickKVbtn (kvID );
210
+ subscriptionPage .clickKVbtn (kvID );
212
211
assert (new WebDriverWait (driver , 10 ).until ((webdriver ) -> driver .getPageSource ().contains ("Authorization" )));
213
-
214
- // Test "Repeat" dropdown: Select repeat value as "true" and then verify
215
- // the selected value
212
+
213
+ // Test "Repeat" dropdown: Select repeat value as "true" and then verify the selected value
216
214
subscriptionPage .selectDropdown (selectRepeatID , repeatValue );
217
215
assert (new WebDriverWait (driver , 10 )
218
- .until ((webdriver ) -> (subscriptionPage .getValueFromSelectRepeat ().equals (repeatValue ))));
219
-
220
- // Test "Add Condition" button: click add condition button and check
221
- // that it adds an additional "condition" field
216
+ .until ((webdriver ) -> (subscriptionPage .getValueFromSelectRepeat ().equals (repeatValue ))));
217
+
218
+ // Test "Add Condition" button: click add condition button and check that it adds an additional "condition" field
222
219
subscriptionPage .clickAddConditionBtn ();
223
220
assertEquals (2 , subscriptionPage .countElements (conditionFieldID ));
224
-
225
- // Test "Add Requirement" button: click the button and assert that it
226
- // adds an additional "requirement" field
221
+
222
+ // Test "Add Requirement" button: click the button and assert that it adds an additional "requirement" field
227
223
subscriptionPage .clickAddRequirementBtn ();
228
224
assertEquals (2 , subscriptionPage .countElements (requirementFieldID ));
229
225
226
+ // Test "Repeat" dropdown: Select repeat value as "true" and then verify
227
+ // the selected value
228
+ subscriptionPage .selectDropdown (selectRepeatID , repeatValue );
229
+ assert (new WebDriverWait (driver , 10 )
230
+ .until ((webdriver ) -> (subscriptionPage .getValueFromSelectRepeat ().equals (repeatValue ))));
231
+
230
232
// Test save subscription form: add subscription name
231
233
// as "selenium_test_subscription" and then click "save" button
232
234
// verification that subscription is added in the datatable (and is
@@ -235,6 +237,5 @@ public void testSubscription() throws Exception {
235
237
subscriptionPage .addFieldValue (subNameID , subName );
236
238
subscriptionPage .clickFormsSaveBtn (responseSave );
237
239
assert (subscriptionPage .textExistsInTable ("Selenium_test_subscription" ));
238
-
239
240
}
240
241
}
0 commit comments