From 2af57b2ca019c9be81d4068e9b0245df8d920475 Mon Sep 17 00:00:00 2001 From: afdolina Date: Thu, 27 Jun 2019 16:45:32 +0500 Subject: [PATCH] fix(selenium): add_product_button --- .../selenium_eti/spec/company_site/eti/product_creation_spec.rb | 2 +- lib/pages/company_site/eti_page.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 8e54c7f..daf4567 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 @@ -40,7 +40,7 @@ @cs_eti_page.set_name(@name) @cs_eti_page.wait_saving @cs_eti_page.set_rubric(CONFIG['eti']['rubric']) - @cs_eti_page.wait_until { @cs_eti_page.first_product_status_element.attribute('title') == 'Опубликованные' } + @cs_eti_page.wait_until { @cs_eti_page.first_product_status_element.attribute('title') == 'Опубликованные на портале' } @cs_eti_page.refresh @cs_eti_page.search_product(@name) end diff --git a/lib/pages/company_site/eti_page.rb b/lib/pages/company_site/eti_page.rb index 0e53755..67ba3f8 100644 --- a/lib/pages/company_site/eti_page.rb +++ b/lib/pages/company_site/eti_page.rb @@ -20,7 +20,7 @@ class EtiPage < Page span(:price_cell, xpath: "//*[contains(text(), 'Указать розничную цену')]") span(:wholesale_price_cell, css: '.js-eti-wholesaleprice .bp-price-free') span(:exist_cell, xpath: "//*[contains(text(), 'Указать наличие')]") - button(:add_product, css: '.new.js-add-product') + button(:add_product, css: '.js-add-product') text_area(:edit_text_area, css: '.edit-text') text_area(:price_text_area, css: '.js-text-price')