File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33RSpec . 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
1315end
You can’t perform that action at this time.
0 commit comments