Sha256: 041b7b7f458908e28126cf4c64ed9256bfa01f8362fbdaa4027d86f5ed6e7958

Contents?: true

Size: 520 Bytes

Versions: 31

Compression:

Stored size: 520 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

31 entries across 31 versions & 1 rubygems

Version Path
spree_frontend-3.3.0.rc1 spec/features/template_rendering_spec.rb
spree_frontend-3.1.5 spec/features/template_rendering_spec.rb
spree_frontend-3.2.1 spec/features/template_rendering_spec.rb
spree_frontend-3.2.0 spec/features/template_rendering_spec.rb
spree_frontend-3.1.4 spec/features/template_rendering_spec.rb
spree_frontend-3.2.0.rc3 spec/features/template_rendering_spec.rb
spree_frontend-3.2.0.rc2 spec/features/template_rendering_spec.rb
spree_frontend-3.2.0.rc1 spec/features/template_rendering_spec.rb
spree_frontend-3.1.3 spec/features/template_rendering_spec.rb
spree_frontend-3.1.2 spec/features/template_rendering_spec.rb
spree_frontend-3.0.10 spec/features/template_rendering_spec.rb
spree_frontend-3.1.1 spec/features/template_rendering_spec.rb
spree_frontend-3.1.0 spec/features/template_rendering_spec.rb
spree_frontend-3.1.0.rc4 spec/features/template_rendering_spec.rb
spree_frontend-3.0.9 spec/features/template_rendering_spec.rb
spree_frontend-3.1.0.rc3 spec/features/template_rendering_spec.rb
spree_frontend-3.1.0.rc2 spec/features/template_rendering_spec.rb
spree_frontend-3.1.0.rc1 spec/features/template_rendering_spec.rb
spree_frontend-3.0.8 spec/features/template_rendering_spec.rb
spree_frontend-3.0.7 spec/features/template_rendering_spec.rb