Fix fill_in not working with option value
This commit is contained in:
parent
21f35f5e0b
commit
b5e86539fc
3 changed files with 6 additions and 6 deletions
4
test/fixtures/members.yml
vendored
4
test/fixtures/members.yml
vendored
|
@ -1,9 +1,9 @@
|
|||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
name: Member One
|
||||
pays: false
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
name: Member Two
|
||||
pays: false
|
||||
|
|
|
@ -18,7 +18,7 @@ class ExpensesTest < ApplicationSystemTestCase
|
|||
fill_in "Description", with: @expense.description
|
||||
check "Estimated" if @expense.estimated
|
||||
fill_in "Payment", with: @expense.payment
|
||||
fill_in "Period", with: @expense.period
|
||||
select @expense.period.capitalize, from: "Period"
|
||||
click_on "Create Expense"
|
||||
|
||||
assert_text "Expense was successfully created"
|
||||
|
@ -33,7 +33,7 @@ class ExpensesTest < ApplicationSystemTestCase
|
|||
fill_in "Description", with: @expense.description
|
||||
check "Estimated" if @expense.estimated
|
||||
fill_in "Payment", with: @expense.payment
|
||||
fill_in "Period", with: @expense.period
|
||||
select @expense.period.capitalize, from: "Period"
|
||||
click_on "Update Expense"
|
||||
|
||||
assert_text "Expense was successfully updated"
|
||||
|
|
|
@ -17,7 +17,7 @@ class IncomesTest < ApplicationSystemTestCase
|
|||
fill_in "Amount", with: @income.amount
|
||||
fill_in "Description", with: @income.description
|
||||
check "Included" if @income.included
|
||||
fill_in "Member", with: @income.member_id
|
||||
select @income.member.name, from: "Member"
|
||||
click_on "Create Income"
|
||||
|
||||
assert_text "Income was successfully created"
|
||||
|
@ -31,7 +31,7 @@ class IncomesTest < ApplicationSystemTestCase
|
|||
fill_in "Amount", with: @income.amount
|
||||
fill_in "Description", with: @income.description
|
||||
check "Included" if @income.included
|
||||
fill_in "Member", with: @income.member_id
|
||||
select @income.member.name, from: "Member"
|
||||
click_on "Update Income"
|
||||
|
||||
assert_text "Income was successfully updated"
|
||||
|
|
Loading…
Reference in a new issue