playtender_variables.robot 7.86 KB
*** Variables ***

${kekv_schemes} =                                                   ["KEKV", "КЕКВ"]
${site_allowed_schemes} =                                           ["ДК021", "ДК015", "ДК018", "ДК003", "specialNorms", "INN", "ATC"]
${page_content_locator} =                                           jquery=.page__content

# alerts
${alert_opened_locator} =                                           jquery=.jconfirm:last .content
${alert_confirm_btn_locator} =                                      jquery=.jconfirm:last .buttons .js-btn-confirm
${alert_opened_close_btn_locator} =                                 jquery=.jconfirm:last .closeIcon
${alert_message_contains_text_locator_tpl} =                        jquery=.jconfirm:last .message:contains(%text%)

# popups
${popup_opened_last_locator} =                                      jquery=.fancybox-is-open:last
${popup_opened_last_submit_btn_locator} =                           jquery=.fancybox-is-open:last .fancybox-slide--current .modal-footer:last .js-submit,.fancybox-is-open:last .fancybox-slide--current .modal-footer:last .js-popup-submit
${popup_opened_content_locator} =                                   jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content  # for checking if it's visible

# error pages
${error_page_404_checker_element_locator} =                         jquery=.site-error[data-error-code="404"]

# language
${language_selector_active_element_locator} =                       jquery=.languages.page-header__languages .languages__btn
${language_selector_active_element_code_attribute_name} =           data-language-code
${language_selector_open_element_locator} =                         jquery=.languages.page-header__languages .js-popup-open-initiator
${language_selector_active_element_by_code_locator_tpl} =           jquery=.languages.page-header__languages .languages__btn[data-language-code='%code%']
${language_selector_list_element_locator_tpl} =                     jquery=.languages.page-header__languages .popup.languages__menu .languages__link[data-language-code='%code%']

# classification popup
${classification_popup_opened_content_locator} =                    jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal  # for checking if it's visible
${classification_popup_scheme_tab_locator_tpl} =                    jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal .nav a[data-toggle="tab"][data-scheme="%scheme%"]
${classification_popup_search_input_locator} =                      jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal .js-search-wrapper:visible .js-input
${classification_popup_serach_item_locator_tpl} =                   jquery=.fancybox-is-open .fancybox-slide--current .fancybox-content.classification-modal .js-search-wrapper:visible .js-search-tree strong:contains(%code%)

# authorization
${login_popup_open_locator} =                                       jquery=.page__header a[data-action="login"]
${login_popup_login_input_locator} =                                id=loginform-email
${login_popup_password_input_locator} =                             id=loginform-password
${login_popup_submit_btn_locator} =                                 jquery=#login-form .js-submit-btn
${user_logged_checker_element_locator} =                            id=notifications-button  # елемент для перевірки чи авторизований користувач

# item form
${item_form_popup_description_input_locator} =                      jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-description']
${item_form_popup_description_ru_input_locator} =                   jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-description_ru']
${item_form_popup_description_en_input_locator} =                   jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-description_en']
${item_form_popup_quantity_input_locator} =                         jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-quantity']
${item_form_popup_unit_input_locator} =                             jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content [id$='-unit_id']
${item_form_popup_classification_edit_btn_locator} =                jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content .js-classification-input-wrapper [data-toggle="classification"]
${item_form_popup_additional_classification_edit_btn_locator} =     jquery=.fancybox-is-open:last .fancybox-slide--current .fancybox-content .js-additional-classification-input-wrapper [data-toggle="additional-classification"]

# plan form
${plan_form_submit_success_msg} =                                   дочекайтесь опублікування на сайті уповноваженого органу
${plan_form_locator} =                                              id=plan-form
${plan_form_general_panel_edit_btn_locator} =                       jquery=#General .panel-heading .js-form-popup-update
${plan_form_procurement_method_type_input_locator} =                id=planform-procurement_method_type
${plan_form_budget_id_input_locator} =                              id=planform-budget_id
${plan_form_project_id_input_locator} =                             id=planform-project_id
${plan_form_project_name_input_locator} =                           id=planform-project_name
${plan_form_title_input_locator} =                                  id=planform-title
${plan_form_year_input_locator} =                                   id=planform-year
${plan_form_tender_start_date_input_locator} =                      id=planform-tender_start_date
${plan_form_value_amount_input_locator} =                           id=planform-value_amount
${plan_form_value_currency_input_locator} =                         id=planform-value_currency
${plan_form_classification_edit_btn_locator} =                      jquery=.field-planform-classification_id .js-classification-input-wrapper [data-toggle="classification"]
${plan_form_additional_classification_edit_btn_locator} =           jquery=.field-planform-additional_classification_ids .js-additional-classification-input-wrapper [data-toggle="additional-classification"]
${plan_form_kekv_classification_edit_btn_locator} =                 jquery=.field-planform-additional_classification_ids_kekv .js-additional-classification-input-wrapper [data-toggle="additional_classification_ids_kekv"]
${plan_form_add_item_btn_locator} =                                 jquery=#Items .js-form-popup-add
${plan_form_update_item_btn_locator_tpl} =                          jquery=#Items .js-form-popup-panel:nth(%index%) .panel-heading .js-form-popup-update
${plan_form_remove_item_btn_locator_tpl} =                          jquery=#Items .js-form-popup-panel[data-title*="%title%"] .panel-heading .js-form-popup-remove
${plan_form_submit_btn_locator} =                                   jquery=#plan-form .js-submit-btn
${plan_created_checker_element_locator} =                           id=plan-part-pjax

# plan view
${plan_view_checker_element_locator} =                              id=plan-general-info
${plan_sync_element_locator} =                                      jquery=#aside-part-pjax .status-label .fa-refresh
${plan_uaid_text_locator} =                                         jquery=#plan-general-info .plan-id .value
${plan_edit_btn_locator} =                                          jquery=#aside-part-pjax a[href*='plan/update']

# plan index + search
${plan_search_form_locator} =                                       id=plan-filter-form
${plan_search_form_query_input_locator} =                           jquery=#plan-filter-form .dynamic-search-query input
${plan_search_form_result_locator_tpl} =                            jquery=#plan-list .lots__item .lot__characteristic li:contains(%query%)