I'm trying to use a hash of data that obtain from data_magic to set values on page, do a refresh and then use that same set of data to validate that the page loaded back with that which was set.
getting an error when trying to use the send
any pointers?
visit MyPage do |page|
my_data = page.data_for :address_set
page.populate_page_with my_data
page.refresh
#
# verify page loads with data set
keys = my_data.keys
keys.each do |key|
expect(send("page.#{key}")).to eq my_data[:key]
end
end
figured it out so sharing in case anyone finds of value. Found it helpful to build in some test of the page-objects being created.