Sha256: 5cf78be9c45675108cdc6e1f8487c4807df87ee139e1c30a77c7e6e21d33e3e6

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

require 'pathname'
require Pathname(__FILE__).ascend{|d| h=d+'spec_helper.rb'; break h if h.file?}

describe 'Guideline:Page (4.0.0)' do

  let(:page) do
    the_page = AdminModule::PageFactory.new.guideline_page
    the_page.navigate_to the_page.get_dynamic_url
    the_page
  end

  before do
    AdminModule.configure do |config|
      config.credentials.clear
      config.credentials[:dev] = ['user', 'pass']

      config.xmlmaps.clear
      config.xmlmaps['test1'] = 'Z-TEMP'
      config.xmlmaps['test2'] = 'Z-TEMP2'

      config.ams_version = "4.0.0"

      # Fail fast
      config.browser_timeout = 5
    end

    allow_any_instance_of(AdminModule::Pages::GuidelinePage400).to receive(:get_dynamic_url).and_return(HtmlSpec.url_for("guideline-400.html"))

  end

  after(:each) do
    page.browser.close
  end

  context "control IDs" do

    context "versions" do
      it "exists" do
        expect( page.versions? ).to eq true
      end
    end

    context "add_version_button" do
      it "exists" do
        expect( page.add_version_button? ).to eq true
      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin_module-0.1.8 spec/lib/admin_module/pages/guideline_page_400_spec.rb