Skip to content

Commit b1243f8

Browse files
committed
Minor spec improvements
1 parent 0de882c commit b1243f8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec/system/theme_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# frozen_string_literal: true
22

33
RSpec.describe 'Theme', type: :system do
4-
it 'checks that the theme is loaded' do
4+
it 'applies the theme styles' do
55
visit '/admin/posts'
66

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

0 commit comments

Comments
 (0)