mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Gateways: Stripe: Adding credit card standalone
This commit is contained in:
parent
51dbae59d4
commit
4705d40fdb
@ -58,7 +58,7 @@ class CreditCardTest extends DuskTestCase
|
||||
->type('cvc', '242');
|
||||
})
|
||||
->click('#pay-now')
|
||||
->waitForText('Details of the payment');
|
||||
->waitForText('Details of the payment', 60);
|
||||
});
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ class CreditCardTest extends DuskTestCase
|
||||
})
|
||||
->radio('#proxy_is_default', true)
|
||||
->click('#pay-now')
|
||||
->waitForText('Details of the payment')
|
||||
->waitForText('Details of the payment', 60)
|
||||
->visitRoute('client.payment_methods.index')
|
||||
->clickLink('View')
|
||||
->assertSee('4242');
|
||||
@ -96,7 +96,7 @@ class CreditCardTest extends DuskTestCase
|
||||
->click('@pay-with-1')
|
||||
->click('.toggle-payment-with-token')
|
||||
->click('#pay-now')
|
||||
->waitForText('Details of the payment');
|
||||
->waitForText('Details of the payment', 60);
|
||||
});
|
||||
}
|
||||
|
||||
@ -112,4 +112,23 @@ class CreditCardTest extends DuskTestCase
|
||||
->assertSee('Payment method has been successfully removed.');
|
||||
});
|
||||
}
|
||||
|
||||
public function testAddingCreditCardStandalone()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visitRoute('client.payment_methods.index')
|
||||
->press('Add Payment Method')
|
||||
->clickLink('Credit Card')
|
||||
->type('#cardholder-name', 'John Doe')
|
||||
->withinFrame('iframe', function (Browser $browser) {
|
||||
$browser
|
||||
->type('cardnumber', '4242 4242 4242 4242')
|
||||
->type('exp-date', '04/22')
|
||||
->type('cvc', '242');
|
||||
})
|
||||
->press('Add Payment Method')
|
||||
->waitForText('**** 4242');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user