Sha256: bb2dc1dad49804c30e0340837c9e63844de400083bbd2a9bc3c92d79c1fb4b59

Contents?: true

Size: 882 Bytes

Versions: 1

Compression:

Stored size: 882 Bytes

Contents

Feature: opting out of ab tests based on configuration

Background:
    Given I run `ckit new split-test`
    And I cd to "split-test"
    And a file named "beakers/first_beaker.rb" with:
    """
    describe "Split test beaker", :depth => 'shallow' do
      it "would not hit the ab testing end point" do
          @driver.get 'http://the-internet.herokuapp.com/abtest'
          @driver.find_element(css: 'h3').text.should == 'No A/B Test'
      end
    end
    """
    And I overwrite config.yaml with:
      """
      screenshot_on_fail: true
      base_url: 'http://the-internet.herokuapp.com/abtest'
      selenium_connect:
          log: 'evidence'
          browser: 'firefox'
      split_testing:
        provider: 'optimizely'
        opt_out: true
      """

  Scenario: opt out is on
    When I run `ckit brew`
    Then the stdout should contain "1 example, 0 failures"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chemistrykit-3.9.0.rc3 features/split_testing.feature