Last active
June 7, 2020 22:28
-
-
Save aronanda/edf6b0226975d3f8ead9c82fac45b5d0 to your computer and use it in GitHub Desktop.
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
def visit_twitter_and_log_in | |
visit 'https://cards-dev.twitter.com/validator'๐ | |
find('input.js-username-field').set(ENV['TWITTER_USERNAME']) | |
find('input.js-password-field').set(ENV['TWITTER_PASSWORD']) | |
click_on('Log in') | |
end | |
def enter_url_and_click_preview(url) | |
find('input.FormControl').set(url) | |
click_on('Preview card') | |
result = has_content?('Page fetched successfully') | |
visit 'https://cards-dev.twitter.com/validator'๐ | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment