Commit 31d8bfe547113b4f03cf2bd176ff1c0d9ae1ccc9

Authored by Playtenders
1 parent 391d6ef1

milestones

... ... @@ -21,6 +21,8 @@ edit contract
21 21 wait until element is visible ${contract_contractform_contract_number_input_locator} 10
22 22 capture page screenshot
23 23 ${file_path} ${file_name} ${file_content} = create_fake_doc
  24 + ${value_added_tax_included} = Run Keyword If '${mode}' == 'negotiation' run keyword and return status Checkbox Should Not Be Selected ${contract_contractform_value_added_tax_included_locator}
  25 + run keyword if '${mode}' == 'negotiation' and ${value_added_tax_included} click visible element ${contract_contractform_value_added_tax_included_locator}
24 26 ${contract_number} = get value by locator on opened page ${contract_contractform_contract_number_input_locator}
25 27 Run Keyword If '${contract_number}' == '' input text to exist visible input ${contract_contractform_contract_number_input_locator} 1234567890
26 28 capture page screenshot
... ... @@ -35,6 +37,8 @@ edit contract
35 37 Run Keyword If '${contract_date_end}' == '' input text to exist visible input ${contract_contractform_date_end_input_locator} ${date_end}
36 38
37 39 Run Keyword If '${field_name}' == 'value.amount' input number to exist visible input ${contract_contractform_amount_input_locator} ${amount}
  40 + ${budget} = Run Keyword If '${field_name}' == 'value.amount' and '${mode}' == 'negotiation' Set Variable ${amount/0.95}
  41 + Run Keyword If '${field_name}' == 'value.amount' and '${mode}' == 'negotiation' input number to exist visible input ${contract_contractform_amount_input_locator} ${budget}
38 42 Run Keyword If '${field_name}' == 'value.amountNet' input number to exist visible input ${contract_contractform_amount_net_input_locator} ${amount}
39 43 capture page screenshot
40 44 choose file ${add_file_to_contract_contractform_locator} ${file_path}
... ...
... ... @@ -15,6 +15,7 @@ ${contract_contractform_submit_success_msg} = Контра
15 15 ${contract_contractform_amount_input_locator} = jquery=#contractform-value_amount
16 16 ${contract_contractform_amount_net_input_locator} = jquery=#contractform-value_amount_net
17 17 ${contract_contractform_active_submit_success_msg} = Контракт успішно активовано, дочекайтесь опублікування на сайті уповноваженого органу.
  18 +${contract_contractform_value_added_tax_included_locator} = jquery=#contractform-value_added_tax_included
18 19
19 20 #contractform document
20 21 ${add_file_to_contract_contractform_locator} = jquery=.field-contractform-documents .js-upload-documents input[type$="file"]:first
... ...
... ... @@ -180,27 +180,27 @@ ${tender_mainProcurementCategory_value_locator} = jquery=#tend
180 180 ${tender_budget_amount_value_locator} = jquery=#tender-general-info .budget-amount.hidden
181 181 ${tender_budget_amount_value_type} = float
182 182 ${tender_tenderID_value_locator} = jquery=#tender-general-info .info-row.tender-id span.value
183   -${tender_milestones_0_code_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:first .info-row.code
184   -${tender_milestones_0_title_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:first .info-row.title
185   -${tender_milestones_0_percentage_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:first .info-row.percentage
186   -${tender_milestones_0_percentage_value_type} = integer
187   -${tender_milestones_0_duration_days_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:first .info-row.duration_days
  183 +${tender_milestones_0_code_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:first .code
  184 +${tender_milestones_0_title_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:first .title
  185 +${tender_milestones_0_percentage_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:first .percentage
  186 +${tender_milestones_0_percentage_value_type} = float
  187 +${tender_milestones_0_duration_days_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:first .duration_days
188 188 ${tender_milestones_0_duration_days_value_type} = integer
189   -${tender_milestones_0_duration_type_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:first .info-row.duration_type
190   -${tender_milestones_1_code_value_locator} = jquery=#milestones .pseudo-table__row:nth(2) .milestone-info-wrapper.hidden.info-wrapper .info-row.code
191   -${tender_milestones_1_title_value_locator} = jquery=#milestones .pseudo-table__row:nth(2) .milestone-info-wrapper.hidden.info-wrapper .info-row.title
192   -${tender_milestones_1_percentage_value_locator} = jquery=#milestones .pseudo-table__row:nth(2) .milestone-info-wrapper.hidden.info-wrapper .info-row.percentage
193   -${tender_milestones_1_percentage_value_type} = integer
194   -${tender_milestones_1_duration_days_value_locator} = jquery=#milestones .pseudo-table__row:nth(2) .milestone-info-wrapper.hidden.info-wrapper .info-row.duration_days
  189 +${tender_milestones_0_duration_type_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:first .duration_type
  190 +${tender_milestones_1_code_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:nth(1) .code
  191 +${tender_milestones_1_title_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:nth(1) .title
  192 +${tender_milestones_1_percentage_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:nth(1) .percentage
  193 +${tender_milestones_1_percentage_value_type} = float
  194 +${tender_milestones_1_duration_days_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:nth(1) .duration_days
195 195 ${tender_milestones_1_duration_days_value_type} = integer
196   -${tender_milestones_1_duration_type_value_locator} = jquery=#milestones .pseudo-table__row:nth(2) .milestone-info-wrapper.hidden.info-wrapper .info-row.duration_type
197   -${tender_milestones_2_code_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:last .info-row.code
198   -${tender_milestones_2_title_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:last .info-row.title
199   -${tender_milestones_2_percentage_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:last .info-row.percentage
200   -${tender_milestones_2_percentage_value_type} = integer
201   -${tender_milestones_2_duration_days_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:last .info-row.duration_days
  196 +${tender_milestones_1_duration_type_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:nth(1) .duration_type
  197 +${tender_milestones_2_code_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:last .code
  198 +${tender_milestones_2_title_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:last .title
  199 +${tender_milestones_2_percentage_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:last .percentage
  200 +${tender_milestones_2_percentage_value_type} = float
  201 +${tender_milestones_2_duration_days_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:last .duration_days
202 202 ${tender_milestones_2_duration_days_value_type} = integer
203   -${tender_milestones_2_duration_type_value_locator} = jquery=#tender-part-pjax .tabs.tabs .milestone-info-wrapper.hidden.info-wrapper:last .info-row.duration_type
  203 +${tender_milestones_2_duration_type_value_locator} = jquery=#tender-part-pjax .milestone-list-wrapper .milestone-info-wrapper.hidden.info-wrapper:last .duration_type
204 204 ${tender_value_amount_value_locator} = jquery=#tender-general-info .budget-amount.hidden
205 205 ${tender_value_amount_value_type} = float
206 206 ${tender_value_currency_value_locator} = jquery=#tender-general-info .budget-currency.hidden
... ...
... ... @@ -492,7 +492,7 @@ Wait For contractactive
492 492 # wait until element is visible ${tender_awards_complaintPeriod_endDate_value_locator} 60
493 493 ${return_value} = run keyword if '${mode}' in 'negotiation' get value by locator on opened page ${tender_awards_negotiation_complaintPeriod_endDate_value_locator}
494 494 ... ELSE get value by locator on opened page ${tender_awards_complaintPeriod_endDate_value_locator}
495   -# ${return_value} = parse_complaintPeriod_date ${return_value}
  495 + ${return_value} = run keyword if '${mode}' in 'negotiation' parse_complaintPeriod_date ${return_value}
496 496 [return] ${return_value}
497 497
498 498 Wait For complaintPeriodendDate
... ...
Please register or login to post a comment