Sha256: c55579a6faa83f641e3ce7827dbda5fe2e79dd3d05284927eaf1090233114292
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
Feature: Adding support for the --pageobject-driver option Scenario: Adding page-object to the Gemfile When I run `testgen project sample --pageobject-driver=watir` Then a file named "sample/Gemfile" should exist And the file "sample/Gemfile" should contain "gem 'page-object', '~> 2.0'" Scenario: Adding page-object to env.rb When I run `testgen project sample --pageobject-driver=watir` Then a file named "sample/features/support/env.rb" should exist And the file "sample/features/support/env.rb" should contain "require 'page-object'" And the file "sample/features/support/env.rb" should contain "World(PageObject::PageFactory)" Scenario: Adding the hook file for Watir When I run `testgen project sample --pageobject-driver=watir` Then a file named "sample/features/support/hooks.rb" should exist And the file "sample/features/support/hooks.rb" should contain "require 'watir'" And the file "sample/features/support/hooks.rb" should contain "@browser = Watir::Browser.new :chrome" Scenario: Adding the hook file for Selenium When I run `testgen project sample --pageobject-driver=selenium` Then a file named "sample/features/support/hooks.rb" should exist And the file "sample/features/support/hooks.rb" should contain "require 'selenium-webdriver'" And the file "sample/features/support/hooks.rb" should contain "@browser = Selenium::WebDriver.for :chrome" Scenario: Creating the pages directory When I run `testgen project sample --pageobject-driver=selenium` Then a directory named "sample/features/support/pages" should exist
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
testgen-0.9 | features/testgen_with_pageobject.feature |