From de98c6ab6c5da579e02685220ed2ab60c6c96b0a Mon Sep 17 00:00:00 2001 From: Copperface Date: Mon, 12 Mar 2018 17:27:38 +0500 Subject: [PATCH] fix: hide support contacts and fix rubric locator https://jira.railsc.ru/browse/AT-175 --- .../spec/company_site/eti/product_creation_spec.rb | 1 + lib/apress/selenium_eti/spec/company_site/minieti_spec.rb | 1 + lib/pages/company_site/eti_page.rb | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/apress/selenium_eti/spec/company_site/eti/product_creation_spec.rb b/lib/apress/selenium_eti/spec/company_site/eti/product_creation_spec.rb index 0b5301c..9ab9de4 100644 --- a/lib/apress/selenium_eti/spec/company_site/eti/product_creation_spec.rb +++ b/lib/apress/selenium_eti/spec/company_site/eti/product_creation_spec.rb @@ -8,6 +8,7 @@ log_in_as(:user) navigate_to_eti @cs_main_page.close_banner + @cs_eti_page.close_support_contacts if @cs_eti_page.close_support_contacts? end describe 'Создание товара' do diff --git a/lib/apress/selenium_eti/spec/company_site/minieti_spec.rb b/lib/apress/selenium_eti/spec/company_site/minieti_spec.rb index 390f5ef..d054381 100644 --- a/lib/apress/selenium_eti/spec/company_site/minieti_spec.rb +++ b/lib/apress/selenium_eti/spec/company_site/minieti_spec.rb @@ -9,6 +9,7 @@ log_in_as(:user) navigate_to_minieti @cs_main_page.close_banner + @cs_eti_page.close_support_contacts if @cs_eti_page.close_support_contacts? end describe 'Поля' do diff --git a/lib/pages/company_site/eti_page.rb b/lib/pages/company_site/eti_page.rb index f97410f..305953a 100644 --- a/lib/pages/company_site/eti_page.rb +++ b/lib/pages/company_site/eti_page.rb @@ -55,7 +55,7 @@ class EtiPage < Page span(:rubric_cell, css: '.js-rubric-preview-link') text_area(:rubric_search, css: '.js-input-rubric-search') button(:rubric_search_submit, css: '.js-button-rubric-search') - button(:first_rubric_search_result, css: '.src-link') + button(:first_rubric_search_result, css: '.js-src-link') link(:page_2, xpath: "//*[@data-page='2']") link(:page_1, xpath: "//*[@data-page='1']") span(:found_products_count, css: '.js-products-count') @@ -82,6 +82,7 @@ class EtiPage < Page span(:inframe_block, css: '.js-bcm-content') span(:group_cell, css: '.js-group-preview-link') button(:submit, xpath: "//*[@value='Выбрать']") + button(:close_support_contacts, css: '.js-support-contacts-close') alias old_confirm confirm def save