Introduction goes here.
Add solidus_page_objects to both the :development and :test groups in
the Gemfile:
group :development, :test do
gem 'solidus_page_objects'
endBundle your dependencies:
bundleIn your features specs write something like:
...
let(:home_page) { Solidus::PageObjects::Pages::Home.new }
before do
home_page.load
end
scenario 'a search term is entered' do
search_results = home_page.top_navigation.search.search_for('Hug')
expect(search_results.product_list.products.size).to eq(1)
end
...
SolidusPageObjects is copyright © 2016 Nebulab. It is free software, and may be redistributed under the terms specified in the license.
SolidusPageObjects is funded and maintained by the Nebulab team.
We firmly believe in the power of open-source. Contact us if you like our work and you need help with your project design or development.