File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 3939 end
4040 end
4141
42+ scenario 'show flash alert warning message if user clicks add organiser without selecting an organiser from the dropdown' do
43+ chapter_subscriber = Fabricate ( :member )
44+ chapter = Fabricate ( :chapter_with_groups )
45+ Fabricate ( :subscription , member : chapter_subscriber , group : chapter . groups . first )
46+ visit admin_chapter_organisers_path ( chapter )
47+
48+ click_on 'Add organiser'
49+
50+ expect ( page ) . to have_content ( 'Please select a member to make organiser.' )
51+ expect ( current_path ) . to eq ( admin_chapter_organisers_path ( chapter ) )
52+ expect ( page . status_code ) . to eq ( 200 )
53+ end
54+
4255 scenario 'can remove an organiser from a chapter' do
4356 visit admin_chapter_organisers_path ( chapter )
4457 organiser_name = chapter . organisers . first . full_name
You can’t perform that action at this time.
0 commit comments