Coder Social home page Coder Social logo

solidus_page_objects's Introduction

Build Status

SolidusPageObjects

Introduction goes here.

Installation

Add solidus_page_objects to both the :development and :test groups in the Gemfile:

group :development, :test do
  gem 'solidus_page_objects'
end

Bundle your dependencies:

bundle

Use

In 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
...

License

SolidusPageObjects is copyright © 2016 Nebulab. It is free software, and may be redistributed under the terms specified in the license.

About

Nebulab

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.

solidus_page_objects's People

Contributors

alessiorocco avatar danielepalombo avatar mtylty avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

minasmazar

solidus_page_objects's Issues

Specs failing with Ruby 2.4

> be rspec spec

Randomized with seed 58340
.........F............

Failures:

  1) SolidusPageObjects::Sections::Cart#apply_coupon_code
     Failure/Error: update_button.click

     ArgumentError:
       key must be 32 bytes
     # ./lib/solidus_page_objects/components/cart.rb:19:in `apply_coupon_code'
     # ./spec/solidus_page_objects/sections/cart_spec.rb:12:in `block (3 levels) in <top (required)>'
     # ./spec/solidus_page_objects/sections/cart_spec.rb:14:in `block (3 levels) in <top (required)>'

Finished in 49.11 seconds (files took 4.5 seconds to load)
22 examples, 1 failure

Failed examples:

rspec ./spec/solidus_page_objects/sections/cart_spec.rb:14 # SolidusPageObjects::Sections::Cart#apply_coupon_code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.