Created
April 4, 2022 09:06
-
-
Save ordinz/967fb168605dd1dc5fc8e9b8c78e4c14 to your computer and use it in GitHub Desktop.
Rails Capybara has class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
css_class = 'hello' | |
script = "document.querySelector('#{query}').classList" | |
expect(page.evaluate_script(script)).to have_text(css_class) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment