Using Rails 6.1.4, the following works locally to fill in a Rich Text (Action Text) in a system test:
find("trix-editor").set("Something")
However, running on a GitHub action, I receive:
Capybara::ElementNotFound: Unable to find visible css "trix-editor"
Changing the code to:
find("trix-editor", visible: false).set("Something")
also works locally, but again fails on GitHub CI with:
Selenium::WebDriver::Error::ElementNotInteractableError: element not interactable
I have also tried the following:
find("#unique_element_id").set("Something")
find(:css, ".trix-content").click.set("Something")
I'm running Ubuntu 20.04 both locally and on the GitHub CI image. How do I resolve this?
EDIT:
I found that there is some unmerged Rails code that is supposed to do this. However, implementing it in my test_helper also works locally but fails on CI. Perhaps I just need to try another CI provider