Sha256: b3e0c4f7f1ea104c64f4f44727050c5f1bc0cb63d9a5f945ed3ad7e5989e2bed

Contents?: true

Size: 820 Bytes

Versions: 5

Compression:

Stored size: 820 Bytes

Contents

# frozen_string_literal: true

RSpec.describe 'Theme', type: :system do
  it 'applies the theme styles' do
    visit '/admin/posts'

    expect(page).to have_css('body.active_admin', style: { 'font-size': '12px' })
    expect(page).to have_css('body.active_admin a', text: /new post/i, style: { 'background-image': 'none' })
    expect(page).to have_css('body.active_admin #header', style: { 'background-image': 'none' })
    expect(page).to have_css('body.active_admin #title_bar', style: { 'box-shadow': 'none' })
    expect(page).to have_css('body.active_admin #main_content', style: { 'padding': '25px 20px' })
    expect(page).to have_css('body.active_admin #active_admin_content', style: { 'display': 'flex' })
    expect(page).to have_css('body.active_admin #footer', style: { 'position': 'absolute' })
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activeadmin_blaze_theme-0.7.4 spec/system/theme_spec.rb
activeadmin_blaze_theme-0.7.0 spec/system/theme_spec.rb
activeadmin_blaze_theme-0.6.2 spec/system/theme_spec.rb
activeadmin_blaze_theme-0.6.0 spec/system/theme_spec.rb
activeadmin_blaze_theme-0.5.16 spec/system/theme_spec.rb