Sha256: e3c4e41b11bbfcdfe3c0a7b99d90cfcbd6c7b228ba9acce15f3ab330c878a5d6

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

require 'spec_integration_helper'

feature 'Pages > Load > Custom event' do
  let(:one_request_page) { PageLoad::OneRequestPage.new }

  before do
    index_page = HomePage.new
    index_page.load

    one_request_page.shift_event {
      index_page.link_to_go_to_another_page.click
    }.apply_vcr
  end

  it 'loads fixtures on opening a page by click on a link' do
    expect(one_request_page.displayed?).to be_true

    expect(one_request_page).to have_content('Ned Stark')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
site_prism.vcr-0.1.2 spec/integration/pages/custom_event_spec.rb
site_prism.vcr-0.1.1 spec/integration/pages/custom_event_spec.rb
site_prism.vcr-0.1.0 spec/integration/pages/custom_event_spec.rb