Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rubendinho/14216192134775c84b29dfcdaa1d90b3 to your computer and use it in GitHub Desktop.
Save rubendinho/14216192134775c84b29dfcdaa1d90b3 to your computer and use it in GitHub Desktop.
Test Plaid instant bank account verification with rspec + capybara
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