GithubHelp home page GithubHelp logo

kampikd / capybara-ng Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kikonen/capybara-ng

0.0 1.0 0.0 536 KB

AngularJS bindings for Capybara

License: MIT License

Ruby 89.56% JavaScript 1.29% CSS 0.88% HTML 6.87% Gherkin 0.19% Shell 1.21%

capybara-ng's Introduction

Angular

Basic bindings for AngularJS to be used with Capybara. Implementation is based into logic copied from Protractor.

NOTE At this point of development, I would classify DSL API "unstable". This means that DSL language may change in incompatible ways.

Supported drivers

Based into testing following drivers should work.

  • chrome
  • poltergeist
  • selenium (using firefox)
  • webkit

Related Projects

Installation

Add this line to your application's Gemfile:

gem 'capybara-ng'
gem 'capybara-ng', git: '[email protected]:kikonen/capybara-ng.git', tag: 'v0.0.1'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capybara-ng

Usage

Setup

spec/spec_helper.rb

RSpec.configure do |config|
  config.include ::Angular::DSL
  ...
end
```

## Examples

### Example test cases

````bash
cd spec/dummy
bundle
bundle exec rake rspec
bundle exec rake cucumber
```

### Experimenting features

@see https://github.com/kikonen/sampler/blob/master/dummy/spec/request/test_spec.rb

### Example test

@see https://github.com/kikonen/sampler/blob/master/dummy/spec/request/task_spec.rb

#### Running Example Test
````bash
# download and install chrome-driver
# http://chromedriver.storage.googleapis.com/index.html

git clone [email protected]:kikonen/sampler.git
cd sampler
cd dummy
bundle
rails s -p 4000&
bundle exec rspec spec/request/test_spec.rb
bundle exec rspec spec/request/task_spec.rb
fg
CTRL^C
```


## Contributing

1. Fork it ( https://github.com/[my-github-username]/capybara/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

capybara-ng's People

Contributors

kikonen avatar ldodds avatar

Watchers

 avatar

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.