Last active
August 13, 2019 21:21
-
-
Save iloveitaly/8104d6616d6b91dd7ffc634ba38ad9f0 to your computer and use it in GitHub Desktop.
Test Plaid instant bank account verification with rspec + capybara
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
within_frame 'plaid-link-iframe-1' do | |
find('[data-institution="pnc"]').click | |
fill_in 'username', with: 'plaid_test' | |
fill_in 'password', with: 'plaid_good' | |
click_on 'Submit' | |
page.has_content?('Security Question', wait: 15) | |
fill_in 'Answer', with: 'tomato', wait: 15 | |
click_on 'Answer' | |
find_button('Select Account', wait: 15).click | |
all('[class="AccountItem"]').sample.click | |
find('div[class*="button"]', text: 'Use Account').click | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment