Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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