/** @test */
public function stripe_v2_example()
{
$this->browse(function (Browser $browser) {
$browser->visit('/test')
->assertSee('Pay with Card')
->press('Pay with Card')
->waitFor('iframe[name=stripe_checkout_app]');
$browser->driver->switchTo()->frame('stripe_checkout_app');
$browser->assertSee('Donate to Taylor')
->keys('input[placeholder="Email"]', '[email protected]')
->keys('input[placeholder="Card number"]', '4242 4242 4242 4242')
->keys('input[placeholder="MM / YY"]', '0120')
->keys('input[placeholder="CVC"]', '123')
->keys('input[placeholder="ZIP Code"]', '55555')
->press('Pay $1,000,000.00')
->waitUntilMissing('iframe[name=stripe_checkout_app]');
$browser->driver->switchTo()->defaultContent();
});
}
Created
July 4, 2017 15:18
-
-
Save BryanHeath/95c52784d912af12ebe9757c4b5c6f6e to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment