Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/donkeycode/cucumber-sentences

This gem is a collection of pre-built sentences compatible with cucumber and page-object
https://github.com/donkeycode/cucumber-sentences

cucumber cucumber-steps page-object ruby

Last synced: 28 days ago
JSON representation

This gem is a collection of pre-built sentences compatible with cucumber and page-object

Awesome Lists containing this project

README

        

# cucumber-sentences

[![Gem Version](https://badge.fury.io/rb/cucumber-sentences.svg)](https://rubygems.org/gems/cucumber-sentences)

This gem is a collection of pre-built sentences compatible with cucumber and page-object

## Setup

Require in your `Gemfile`

`````
gem "cucumber-sentences"
`````

Add in your `features/step_definitions/imports.rb`

````
ENV['CUCUMBER_ROOT'] = File.absolute_path('../', File.dirname(__FILE__));
require "cucumber-sentences"
`````

That's all !

## Publish

```
gem build cucumber-sentences.gemspec
gem push cucumber-sentences-VERSION.gem
```

## Sentences included

### Pages manipulation

- Given I am on the "([^"]*)"