mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 11:11:12 +08:00

What is this change required? We were seeing this error on CI ``` 1) Fast edit when editing text that has strange characters saves when paragraph contains apostrophe Failure/Error: expect(find("#{topic_page.post_by_number_selector(2)} .cooked p")).to have_content( "It ‘twas a great’ “day”!", ) Selenium::WebDriver::Error::StaleElementReferenceError: stale element reference: stale element not found (Session info: chrome=114.0.5735.90) ``` I believe this is because the element that is "found" using `find` is eventually re-rendered before the `have_content` matcher is called on it.