How to click first link in that case:
Agree
Since first() doesn't always wait, perhaps this is useful:
expect(page).to have_css("selector") first("selector").click