Commit 0742df90785d73a5b84ab00744675f40dec2c86a
1 parent
77b51c71
tender_owner '${mode}' == 'open_framework'
Showing
1 changed file
with
9 additions
and
2 deletions
@@ -71,7 +71,8 @@ edit unitprices | @@ -71,7 +71,8 @@ edit unitprices | ||
71 | Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для другого контракту' Execute Javascript $('#agreement-contracts-list .tabs__item.tabs__item--active_next-child a[id*="tab-agreement-contract"] span span').click() | 71 | Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для другого контракту' Execute Javascript $('#agreement-contracts-list .tabs__item.tabs__item--active_next-child a[id*="tab-agreement-contract"] span span').click() |
72 | # Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для другого контракту' open popup by btn locator ${contract_active_form_agreement_open_btn_locator} | 72 | # Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для другого контракту' open popup by btn locator ${contract_active_form_agreement_open_btn_locator} |
73 | capture page screenshot | 73 | capture page screenshot |
74 | - Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для третього контракту' Execute Javascript ${contract_next_form_agreement1_open_btn_locator} | 74 | +# Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для третього контракту' Execute Javascript ${contract_next_form_agreement1_open_btn_locator} |
75 | + Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для третього контракту' Execute Javascript $('#agreement-contracts-list .tabs__item:nth(2) a span span').click() | ||
75 | capture page screenshot | 76 | capture page screenshot |
76 | open popup by btn locator ${contract_active_form_agreement_open_btn_locator} | 77 | open popup by btn locator ${contract_active_form_agreement_open_btn_locator} |
77 | capture page screenshot | 78 | capture page screenshot |
@@ -82,6 +83,8 @@ edit unitprices | @@ -82,6 +83,8 @@ edit unitprices | ||
82 | # Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для третього контракту' input number to exist visible input ${contract_agreement_unit_prices_input_locator} ${contract_data.data.unitPrices[2].value.amount} | 83 | # Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для третього контракту' input number to exist visible input ${contract_agreement_unit_prices_input_locator} ${contract_data.data.unitPrices[2].value.amount} |
83 | # capture page screenshot | 84 | # capture page screenshot |
84 | input number to exist visible input ${contract_agreement_unit_prices_input_locator} ${contract_data.data.unitPrices[0].value.amount} | 85 | input number to exist visible input ${contract_agreement_unit_prices_input_locator} ${contract_data.data.unitPrices[0].value.amount} |
86 | + Run Keyword If '${TEST_NAME}' == 'Можливість встановити ціну за одиницю для третього контракту' input number to exist visible input ${contract_agreement_unit_prices_input_locator} 63965 | ||
87 | + capture page screenshot | ||
85 | 88 | ||
86 | submit form and check result ${contract_contractform_submit_btn_locator} ${contract_agreement_active_submit_success_msg} | 89 | submit form and check result ${contract_contractform_submit_btn_locator} ${contract_agreement_active_submit_success_msg} |
87 | capture page screenshot | 90 | capture page screenshot |
@@ -108,7 +111,9 @@ active agreement contract | @@ -108,7 +111,9 @@ active agreement contract | ||
108 | Run Keyword If '${contract_date_end}' == '' input datetime to visible input ${contract_agreement_date_end_input_locator} ${date_end} | 111 | Run Keyword If '${contract_date_end}' == '' input datetime to visible input ${contract_agreement_date_end_input_locator} ${date_end} |
109 | 112 | ||
110 | capture page screenshot | 113 | capture page screenshot |
111 | - choose file ${add_file_to_contract_contractform_locator} ${file_path} | 114 | + run keyword if '${mode}' == 'open_framework' choose file jquery=#tender-agreement-form .js-upload-documents input[type$="file"]:first ${file_path} |
115 | + run keyword if '${mode}' not in 'open_framework' choose file ${add_file_to_contract_contractform_locator} ${file_path} | ||
116 | +# choose file ${add_file_to_contract_contractform_locator} ${file_path} | ||
112 | wait until page does not contain element ${popup_dynamic_form_loading_element_locator} 60 | 117 | wait until page does not contain element ${popup_dynamic_form_loading_element_locator} 60 |
113 | wait until element is visible ${contract_contractform_add_document_type_input_locator} 60 | 118 | wait until element is visible ${contract_contractform_add_document_type_input_locator} 60 |
114 | capture page screenshot | 119 | capture page screenshot |
@@ -129,6 +134,8 @@ active agreement contract | @@ -129,6 +134,8 @@ active agreement contract | ||
129 | capture page screenshot | 134 | capture page screenshot |
130 | run keyword and ignore error Load Sign | 135 | run keyword and ignore error Load Sign |
131 | capture page screenshot | 136 | capture page screenshot |
137 | + run keyword if '${mode}' == 'open_framework' close current visible alert | ||
138 | + capture page screenshot | ||
132 | submit form and check result ${qualification_form_submit_btn_locator} ${contract_agreement_active_submit_success_msg} ${None} | 139 | submit form and check result ${qualification_form_submit_btn_locator} ${contract_agreement_active_submit_success_msg} ${None} |
133 | capture page screenshot | 140 | capture page screenshot |
134 | 141 |
Please
register
or
login
to post a comment