Skip to content

Commit 0bc764b

Browse files
committed
Fix flaky test: Labels CSV needs an organiser
The workshop fabricator no longer creates organisers automatically after the chapter fabricator optimization. This test needs an organiser to be present for the CSV to contain 'ORGANISER'.
1 parent 849cb80 commit 0bc764b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/features/admin/workshops_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@
247247
context 'Labels' do
248248
it 'returns a CSV with all workshop participants that can be used to generate the labels' do
249249
workshop = Fabricate(:workshop)
250+
# Add an organiser to ensure ORGANISER appears in the CSV
251+
organiser = Fabricate(:member)
252+
organiser.add_role :organiser, workshop.chapter
253+
250254
visit admin_workshop_path(workshop)
251255
click_on 'Labels'
252256

0 commit comments

Comments
 (0)