Showing
3 changed files
with
22 additions
and
1 deletions
... | ... | @@ -108,6 +108,13 @@ Resource playtender_contr |
108 | 108 | ${value} = get field_value by field_name on opened page ${field_name} |
109 | 109 | [Return] ${value} |
110 | 110 | |
111 | +Скасувати план | |
112 | + [Arguments] ${username} ${plan_uaid} ${data} | |
113 | + [Documentation] Скасувати план plan_uaid. | |
114 | + | |
115 | + open plan page by uaid ${plan_uaid} | |
116 | + delete plan ${data} | |
117 | + | |
111 | 118 | ######################################################################################################################## |
112 | 119 | ################################################### TENDER KEYWORDS #################################################### |
113 | 120 | ######################################################################################################################## | ... | ... |
... | ... | @@ -173,3 +173,11 @@ save plan form and wait synchronization |
173 | 173 | submit form and check result ${plan_form_submit_btn_locator} ${plan_form_submit_success_msg} ${plan_created_checker_element_locator} |
174 | 174 | wait until page does not contain element with reloading ${plan_sync_element_locator} |
175 | 175 | |
176 | +delete plan | |
177 | + [Arguments] ${data} | |
178 | + [Documentation] натискає кнопку "Скасувати рядок плану" і видаляє план | |
179 | + | |
180 | + click visible element ${plan_delete_btn_locator} | |
181 | + ${reason} = get from dictionary by keys ${data} reason | |
182 | + run keyword if condition is not none ${reason} input text to visible input ${plan_form_delete_reason_value_locator} ${reason} | |
183 | + submit form and check result ${plan_form_delete_sucess_btn_locator} ${plan_form_delete_submit_success_msg} | ... | ... |
... | ... | @@ -35,6 +35,7 @@ ${plan_view_checker_element_locator} = id=plan-gene |
35 | 35 | ${plan_sync_element_locator} = jquery=#aside-part-pjax .status-label .fa-refresh |
36 | 36 | ${plan_uaid_text_locator} = jquery=#plan-general-info .plan-id .value |
37 | 37 | ${plan_edit_btn_locator} = jquery=#aside-part-pjax a[href*="plan/update"] |
38 | +${plan_delete_btn_locator} = jquery=#aside-part-pjax a[href*="/plan/cancel"] | |
38 | 39 | # -- for viewer -- |
39 | 40 | ${plan_tender_procurementMethodType_value_locator} = jquery=#plan-general-info .procurement-method-type.hidden |
40 | 41 | ${plan_budget_amount_value_locator} = jquery=#plan-general-info .budget-amount.hidden |
... | ... | @@ -76,4 +77,9 @@ ${plan_search_form_locator} = id=plan-filt |
76 | 77 | ${plan_search_form_query_input_locator} = jquery=#plan-filter-form [data-ds-filter="query"] input.select2-search__field |
77 | 78 | ${plan_search_form_result_locator_tpl} = jquery=#plan-list .lots__item .lot__characteristic li:contains(%query%) |
78 | 79 | |
79 | -${plan_form_ecp_btn_locator} = id=submitBtn | |
80 | +${plan_form_ecp_btn_locator} = id=submitBtn | |
81 | + | |
82 | +#for delete | |
83 | +${plan_form_delete_reason_value_locator} = id=plancancellationform-reason | |
84 | +${plan_form_delete_sucess_btn_locator} = jquery=.btn.btn-success:contains("Скасувати") | |
85 | +${plan_form_delete_submit_success_msg} = Рядок плану закупівлі успішно скасований | ... | ... |
Please
register
or
login
to post a comment