I’ve been adding PDF printouts to an existing application, testing as I go. With my latest changes, two examples started failing. After some trial and error I found out that the following (newly added) works:
expect(page).to have_css('input[id="ee_requisition_requisition_number"]', value: 'EB-0001')
while the following (original test) fails:
expect(page).to have_content 'EB-0001'
Any thoughts on why this might be? I could change these tests to pass, but I’d really like to understand what’s going on so I can avoid this in the future.