I'm testing a poorly written webpage where on one page the first heading is a H1 then on the next page it's a H2.
Usually I would write something like find('h1', text: 'bla bla bla')
or expect(find('h1')).to have_text 'bla bla bla'
As it keeps changing between H1 and H2, is there a way to say find('h1' || 'h2', text: 'bla bla bla)
I'd like to keep the test looking within the headers as the text sometimes exists within the body of the page too.