Sha256: 31fc6c2398eb41a15763e6a3d7eaf3906a151cc4adbdc6f834358af10faee45d

Contents?: true

Size: 1.71 KB

Versions: 7

Compression:

Stored size: 1.71 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'"
    
  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 "require 'page-object/page_factory'"
    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-webdriver'"
    And the file "sample/features/support/hooks.rb" should contain "@browser = Watir::Browser.new :firefox"
    
  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 :firefox"
  
  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

7 entries across 7 versions & 1 rubygems

Version Path
testgen-0.5.2 features/testgen_with_pageobject.feature
testgen-0.5.1 features/testgen_with_pageobject.feature
testgen-0.5 features/testgen_with_pageobject.feature
testgen-0.4 features/testgen_with_pageobject.feature
testgen-0.3 features/testgen_with_pageobject.feature
testgen-0.2.4 features/testgen_with_pageobject.feature
testgen-0.2.3 features/testgen_with_pageobject.feature