Showing
3 changed files
with
17 additions
and
16 deletions
... | ... | @@ -331,20 +331,11 @@ Resource playtender_contr |
331 | 331 | [Documentation] Видалити неціновий показник з feature_id в описі для тендера tender_uaid. |
332 | 332 | |
333 | 333 | open tender form by uaid ${tender_uaid} |
334 | - Run Keyword If '${TEST_NAME}' == 'Можливість видалити неціновий показник на предмет' click visible element ${tender_update_feature_item_btn_locator} | |
335 | - Run Keyword If '${TEST_NAME}' == 'Можливість видалити неціновий показник на лот' click visible element ${tender_update_feature_lot_btn_locator} | |
336 | - Run Keyword If '${TEST_NAME}' == 'Можливість видалити неціновий показник на тендер' click visible element ${tender_update_feature_tender_btn_locator} | |
337 | - wait until popup is visible | |
338 | - ${tender_feature_switch_dell_btn_locator} = replace string ${tender_feature_switch_dell_btn_locator_tpl} %feature_id% ${feature_id} | |
339 | - execute javascript ${tender_feature_switch_dell_btn_locator} | |
340 | -# click visible element ${tender_feature_switch_dell_btn_locator} | |
341 | - Wait Until Element Is Visible ${tender_feature_dell_btn_locator} 20 | |
342 | - click visible element ${tender_feature_dell_btn_locator} | |
343 | - Wait Until Page Contains ${tender_feature_form_submit_success_msg} 60 | |
344 | - execute javascript ${not_alert_opened_close_btn_locator} | |
345 | - #click visible element ${not_alert_opened_close_btn_locator} | |
346 | - Wait Until Page Does Not Contain ${tender_feature_form_submit_success_msg} 10 | |
347 | - submit current visible popup | |
334 | + Run Keyword If '${TEST_NAME}' == 'Можливість видалити неціновий показник на предмет' open popup by btn locator ${tender_update_feature_item_btn_locator} | |
335 | + Run Keyword If '${TEST_NAME}' == 'Можливість видалити неціновий показник на лот' open popup by btn locator ${tender_update_feature_lot_btn_locator} | |
336 | + Run Keyword If '${TEST_NAME}' == 'Можливість видалити неціновий показник на тендер' open popup by btn locator ${tender_update_feature_tender_btn_locator} | |
337 | + ${delete_feature_btn_locator} = replace string ${tender_feature_switch_dell_btn_locator_tpl} %feature_id% ${feature_id} | |
338 | + click removing form feature and wait success result ${delete_feature_btn_locator} | |
348 | 339 | save tender form and wait synchronization |
349 | 340 | |
350 | 341 | ... | ... |
... | ... | @@ -130,6 +130,16 @@ click removing form item and wait success result |
130 | 130 | click visible element ${alert_confirm_btn_locator} |
131 | 131 | wait until page does not contain element ${alert_confirm_btn_locator} |
132 | 132 | |
133 | +click removing form feature and wait success result | |
134 | + [Arguments] ${locator} | |
135 | + [Documentation] натискає кнопку видалення нецінового критерію, очікує успішне повідомлення і закриває повідомлення, а потім закриває вікно нецінового критерію | |
136 | + | |
137 | + js click element ${locator} | |
138 | + wait until alert is visible | |
139 | + click visible element ${alert_confirm_btn_locator} | |
140 | + wait until page does not contain element ${alert_confirm_btn_locator} | |
141 | + submit current visible popup | |
142 | + | |
133 | 143 | input text to visible input |
134 | 144 | [Arguments] ${locator} ${text} |
135 | 145 | [Documentation] перевіряє чи елемент видимий у вікні браузера, після чого заповнює його | ... | ... |
... | ... | @@ -277,8 +277,8 @@ ${tender_feature_form_submit_success_msg} = Ви впеР|
277 | 277 | ${tender_feature_dell_submit_btn_locator} = jquery=.animated-content .js-btn-confirm |
278 | 278 | |
279 | 279 | ${tender_form_general_tender_plan_id_locator} = jquery=[id$="form-plan_id"] |
280 | -#${tender_feature_switch_dell_btn_locator_tpl} = jquery=.fancybox-is-open .nav.nav-pills.js-nav.allow-empty li[data-title*="%feature_id%"] a[href*="#features"] | |
281 | -${tender_feature_switch_dell_btn_locator_tpl} = $('.fancybox-is-open .nav.nav-pills.js-nav.allow-empty li[data-title*="%feature_id%"] a[href*="#features"]').click() | |
280 | +${tender_feature_switch_dell_btn_locator_tpl} = jquery=.fancybox-is-open .nav.nav-pills.js-nav.allow-empty li[data-title*="%feature_id%"] .js-dynamic-form-remove .fa.fa-times | |
281 | +#${tender_feature_switch_dell_btn_locator_tpl} = $('.fancybox-is-open .nav.nav-pills.js-nav.allow-empty li[data-title*="%feature_id%"] a[href*="#features"]').click() | |
282 | 282 | |
283 | 283 | #award reporting |
284 | 284 | ${tender_form_award_organization_name_locator} = jquery=[id$="-award_organization_name"] | ... | ... |
Please
register
or
login
to post a comment