My code in default.yml is:
forgot_password_page: email_address: ~email_address
and in forgot_password_page.rb is:
include PageObject
include DataMagic
def submit_forgot_password(data = {})
populate_page_with data_for(:forgot_password_page, data)
end
end
After I ran the test the following error is displayed:
gems/data_magic-1.2/lib/data_magic/standard_translation.rb:187: Passing name with the 1st argument of email is deprecated. Use keyword argument like email(name: ...) instead.