Commit d0e335faae43ab7b1449ba16db520ec3eafe60b3

Authored by Playtenders
1 parent 007c50bf

editing lot creation after updating

... ... @@ -99,9 +99,11 @@ fill tender general info
99 99 run keyword if condition is not none ${procurement_method_type} select from list by value ${tender_form_procurement_method_type_input_locator} ${procurement_method_type}
100 100 wait until page does not contain element ${tender_load_form_after_mode_locator}
101 101
  102 + capture page screenshot
102 103 ${lots} = get from dictionary by keys ${data} lots
103 104 run keyword if condition is not none ${lots} Run Keyword And Ignore Error Execute Javascript $('[id$="form-is_multilot"]').click()
104 105 wait until page does not contain element ${tender_load_form_after_mode_locator} 20
  106 + capture page screenshot
105 107
106 108 open popup by btn locator ${plan_form_general_panel_edit_btn_locator}
107 109 ${plan_path} = Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
... ... @@ -440,12 +442,16 @@ fill tender form lots
440 442 ${prepared_tender_data} = Get From Dictionary ${td_railway_crutch} data
441 443 ${milestones1} = Run Keyword If "${mode}" in "negotiation" Get From Dictionary ${prepared_tender_data} milestones
442 444 ##### EOF - TMP #####
  445 + capture page screenshot
443 446 :FOR ${lot_attributes} IN @{lot_attributes_array}
444 447 \ run keyword if '${mode}' not in 'open_framework' open popup by btn locator ${tender_form_lots_panel_edit_btn_locator}
445   - \ ... ELSE click visible element ${tender_form_lots_edit_lot1_btn_locator}
  448 + \ ... ELSE Execute Javascript $('#Lots #collapseLots #Lots0 .actions-wrapper a.btn.btn-default.btn-update.js-form-popup-update:first').click()
  449 +# \ run keyword if '${mode}' not in 'open_framework' open popup by btn locator ${tender_form_lots_panel_edit_btn_locator}
  450 +# \ ... ELSE click visible element ${tender_form_lots_edit_lot1_btn_locator}
446 451 # \ open popup by btn locator ${tender_form_lots_panel_edit_btn_locator}
447 452 # \ click visible element ${tender_form_lots_panel_edit_btn_locator}
448 453 # \ wait until popup is visible
  454 + \ capture page screenshot
449 455 \ fill lot form in opened popup ${lot_attributes}
450 456 \ submit current visible popup
451 457 \ ${features} = get from dictionary by keys ${lot_attributes} features
... ... @@ -455,6 +461,7 @@ fill tender form lots
455 461 \ run keyword if condition is none ${milestones} run keyword if "${mode}" in "negotiation" fill tender form milestones ${milestones1}
456 462 \ ${items} = get from dictionary by keys ${lot_attributes} items
457 463 \ run keyword if condition is not none ${items} fill tender form items ${items}
  464 + capture page screenshot
458 465
459 466 fill tender form lots 2 stage
460 467 [Arguments] ${lot_attributes_array}
... ...
... ... @@ -154,7 +154,8 @@ ${milestone_form_popup_code_input_locator} = jquery=.fanc
154 154 ${milestone_form_popup_duration_days_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-duration_days"]
155 155 ${milestone_form_popup_duration_type_input_locator} = jquery=.fancybox-is-open:last .tab-content:first > .tab-pane.active:first [id$="-duration_type"]
156 156
157   -${tender_form_lots_panel_edit_btn_locator} = jquery=a.btn.btn-default.btn-update.js-form-popup-add
  157 +${tender_form_lots_panel_edit_btn_locator} = jquery=#Lots0 a.btn.btn-default.btn-update[data-url*="#lots0-form-popup"]
  158 +#${tender_form_lots_panel_edit_btn_locator} = jquery=a.btn.btn-default.btn-update.js-form-popup-add
158 159 ${lot_form_popup_add_btn_locator} = jquery=[href$="#add-milestones"]
159 160 ${lot_form_popup_title_input_locator} = jquery=.fancybox-is-open [id$="-title"]
160 161 ${lot_form_popup_description_input_locator} = jquery=.fancybox-is-open [id$="-description"]
... ...
Please register or login to post a comment