Showing
2 changed files
with
3 additions
and
5 deletions
@@ -344,10 +344,6 @@ Change the status of the complaint | @@ -344,10 +344,6 @@ Change the status of the complaint | ||
344 | ... AND capture page screenshot | 344 | ... AND capture page screenshot |
345 | ... AND submit form and check result ${select_complaint_success_btn_locator} ${select_complaint_submit_success_msg} ${true} | 345 | ... AND submit form and check result ${select_complaint_success_btn_locator} ${select_complaint_submit_success_msg} ${true} |
346 | ... AND capture page screenshot | 346 | ... AND capture page screenshot |
347 | - ... AND wait until alert is visible ${select_complaint_success_btn_locator} | ||
348 | - ... AND capture page screenshot | ||
349 | -# ... AND close current visible alert | ||
350 | -# ... AND capture page screenshot | ||
351 | ${claim_form_open_form_change_status_btn_locator} = replace string ${claim_form_open_form_change_status_btn_locator_tpl} %title% ${complaintID} | 347 | ${claim_form_open_form_change_status_btn_locator} = replace string ${claim_form_open_form_change_status_btn_locator_tpl} %title% ${complaintID} |
352 | Run Keyword If '${confirmation_data.data.status}' == 'resolved' Run keywords | 348 | Run Keyword If '${confirmation_data.data.status}' == 'resolved' Run keywords |
353 | ... wait until page contains element with reloading ${claim_form_open_form_change_status_btn_locator} | 349 | ... wait until page contains element with reloading ${claim_form_open_form_change_status_btn_locator} |
@@ -549,7 +549,9 @@ def getLastCancellationComplaintDataByTenderUaId(apiBaseUrl, tenderUaId): | @@ -549,7 +549,9 @@ def getLastCancellationComplaintDataByTenderUaId(apiBaseUrl, tenderUaId): | ||
549 | break | 549 | break |
550 | if tenderId is None: | 550 | if tenderId is None: |
551 | return {} | 551 | return {} |
552 | - tenderDataCancellationId = updatesResponse['json']['data']['cancellations']['id'] | 552 | + tenderDataCancellation = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/cancellations/", data={}) |
553 | + tenderDataCancellations= tenderDataCancellation['json']['data'][0] | ||
554 | + tenderDataCancellationId= tenderDataCancellations['json']['data']['id'] | ||
553 | tenderDataResponse = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/cancellations/" + tenderDataCancellationId + "/complaints", data={}) | 555 | tenderDataResponse = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/cancellations/" + tenderDataCancellationId + "/complaints", data={}) |
554 | tenderDataJson = tenderDataResponse['json']['data'][0] | 556 | tenderDataJson = tenderDataResponse['json']['data'][0] |
555 | return tenderDataJson | 557 | return tenderDataJson |
Please
register
or
login
to post a comment