Skip to content

Commit

Permalink
fix(traits): new design of binding popup
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillFurtikov committed Sep 12, 2018
1 parent a861ac7 commit dd4f370
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
context 'когда копируем товар' do
before(:all) do
@product = {
name: Faker::Name.title,
name: Faker::Number.number(5),
rubric: CONFIG['eti']['rubric'],
exists: CONFIG['eti']['exists']['in stock'],
short_description: CONFIG['product_creation']['short_description']['valid'],
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/company_site/eti_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def set_description(text)
def set_portal_traits(name, options = {})
Page.text_area(:trait_1, xpath: "//input[@data-name='#{CONFIG['eti']['portal_traits']['trait_1']}']")
Page.text_area(:trait_2, xpath: "//input[@data-name='#{CONFIG['eti']['portal_traits']['trait_2']}']")
Page.link(:trait_link1, xpath: "//a[text()='#{options.fetch(:trait_1, '')}']")
Page.link(:trait_link2, xpath: "//a[text()='#{options.fetch(:trait_2, '')}']")
Page.link(:trait_link1, css: ".js-item-trait[data-value='#{options.fetch(:trait_1, '')}']")
Page.link(:trait_link2, css: ".js-item-trait[data-value='#{options.fetch(:trait_2, '')}']")
Page.span(:portal_traits_cell, xpath:
"//td[@data-text='#{name}']/..//*[contains(text(), 'указать характеристики')]")

Expand Down

0 comments on commit dd4f370

Please sign in to comment.