Skip to content

Commit

Permalink
fix: hide support contacts and fix rubric locator
Browse files Browse the repository at this point in the history
  • Loading branch information
Copperface committed Mar 12, 2018
1 parent 0bb5fec commit de98c6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/apress/selenium_eti/spec/company_site/minieti_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/pages/company_site/eti_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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
Expand Down

0 comments on commit de98c6a

Please sign in to comment.