Forked from iloveitaly/plaid_integration_test_with_capybara.rb
Created
August 13, 2019 21:21
-
-
Save rubendinho/14216192134775c84b29dfcdaa1d90b3 to your computer and use it in GitHub Desktop.
Test Plaid instant bank account verification with rspec + capybara
This file contains 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