@ -41,6 +41,7 @@ describe 'Projects index page',
let ( :filters ) { :: Components :: WorkPackages :: Filters . new }
let ( :filters ) { :: Components :: WorkPackages :: Filters . new }
let ( :wp_table ) { :: Pages :: WorkPackagesTable . new }
let ( :wp_table ) { :: Pages :: WorkPackagesTable . new }
let ( :projects_page ) { Pages :: Projects :: Index . new }
let ( :projects_page ) { Pages :: Projects :: Index . new }
let ( :dropdown ) { :: Components :: ProjectIncludeComponent . new }
before do
before do
login_as admin
login_as admin
@ -142,11 +143,11 @@ describe 'Projects index page',
expect ( page ) . to have_selector '.group--value' , text : 'B'
expect ( page ) . to have_selector '.group--value' , text : 'B'
# Expect type and project filters
# Expect type and project filters
filters . expect_filter_count 2
dropdown . expect_count 2
filters . expect_filter_count 1
filters . open
filters . open
filters . expect_filter_by ( 'Type' , 'is' , [ type_milestone . name ] )
filters . expect_filter_by ( 'Type' , 'is' , [ type_milestone . name ] )
filters . expect_filter_by ( 'Project' , 'is' , [ project_a . name , project_b . name ] )
# Expect columns
# Expect columns
columns . open_modal
columns . open_modal