Rails System Testing, no selector available for assert_selector

Viewed 17

I am getting into rails system testing and trying to use assert_selector to find an edited text. Here is the problem, the text is not wrapped in a CSS selector, it is just plain text on the page (please check the screenshot).

enter image description here

Is there a better assertion to find the edited text on the page, or is my page just poorly optimized because the content is not wrapped in a CSS selector?

Surely there is a way to still search the page and find this edited text?

0 Answers
Related