We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bbffda commit d1c9266Copy full SHA for d1c9266
spec/features/member_joining_spec.rb
@@ -40,6 +40,9 @@
40
fill_in 'member_surname', with: 'Doe'
41
fill_in 'member_email', with: 'jane@codebar.io'
42
fill_in 'member_about_you', with: Faker::Lorem.paragraph
43
+ check 'Vegan'
44
+ check 'Other'
45
+ fill_in 'Other dietary restrictions', with: 'peanut allergy'
46
click_on 'Next'
47
48
expect(page).to have_current_path(step2_member_path)
@@ -50,6 +53,8 @@
50
53
expect(page).to have_content('she')
51
54
expect(page).to have_content('Jane Doe')
52
55
expect(page).to have_link('jane@codebar.io')
56
+ expect(page).to have_selector('.badge', text: 'Vegan')
57
+ expect(page).to have_selector('.badge', text: 'Peanut allergy')
58
end
59
60
scenario 'Picking a mailing list on step 2 subscribes you to that list' do
0 commit comments