Sha256: 18cc45c312380dca7a0afa8b3b1f6f330890ba64e3302da580f493a57abf91c8

Contents?: true

Size: 519 Bytes

Versions: 43

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'

describe "Template rendering", type: :feature do
  after do
    Capybara.ignore_hidden_elements = true
  end

  before do
    Capybara.ignore_hidden_elements = false
  end

  it 'layout should have canonical tag referencing site url' do
    Spree::Store.create!(code: 'spree', name: 'My Spree Store', url: 'spreestore.example.com', mail_from_address: 'test@example.com')

    visit spree.root_path
    expect(find('link[rel=canonical]')[:href]).to eql('http://spreestore.example.com/')
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
solidus_frontend-2.5.2 spec/features/template_rendering_spec.rb
solidus_frontend-2.5.1 spec/features/template_rendering_spec.rb
solidus_frontend-2.5.0 spec/features/template_rendering_spec.rb
solidus_frontend-2.5.0.rc1 spec/features/template_rendering_spec.rb
solidus_frontend-2.5.0.beta2 spec/features/template_rendering_spec.rb
solidus_frontend-2.5.0.beta1 spec/features/template_rendering_spec.rb
solidus_frontend-2.4.2 spec/features/template_rendering_spec.rb
solidus_frontend-2.2.2 spec/features/template_rendering_spec.rb
solidus_frontend-2.4.1 spec/features/template_rendering_spec.rb
solidus_frontend-2.3.1 spec/features/template_rendering_spec.rb
solidus_frontend-2.1.1 spec/features/template_rendering_spec.rb
solidus_frontend-2.0.3 spec/features/template_rendering_spec.rb
solidus_frontend-1.4.2 spec/features/template_rendering_spec.rb
solidus_frontend-1.3.2 spec/features/template_rendering_spec.rb
solidus_frontend-2.4.0 spec/features/template_rendering_spec.rb
solidus_frontend-2.4.0.rc1 spec/features/template_rendering_spec.rb
solidus_frontend-2.4.0.beta1 spec/features/template_rendering_spec.rb
solidus_frontend-2.3.0 spec/features/template_rendering_spec.rb
solidus_frontend-2.3.0.rc3 spec/features/template_rendering_spec.rb
solidus_frontend-2.3.0.rc2 spec/features/template_rendering_spec.rb