Add Test for Afterpay alert
This commit is contained in:
parent
1371f9856b
commit
3c6740e665
1 changed files with 17 additions and 0 deletions
|
|
@ -468,4 +468,21 @@ describe('payment-page.vue', () => {
|
||||||
expect(creditCardErrorAlert.isVisible()).toBeTruthy();
|
expect(creditCardErrorAlert.isVisible()).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('AfterPay Error Alert', () => {
|
||||||
|
test('show after pay error alert', () => {
|
||||||
|
// Arrange
|
||||||
|
const queryString = {
|
||||||
|
[queryStrings.DISPLAY_PAY_IN_ADVANCE_ALERT]: paymentMethods.AFTERPAY
|
||||||
|
};
|
||||||
|
const wrapper = setupMocks({ queryString });
|
||||||
|
|
||||||
|
// Act
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
const afterPayErrorAlert = wrapper.find('[name="payInAdvanceAfterPayErrorAlert"]');
|
||||||
|
expect(afterPayErrorAlert.exists()).toBeTruthy();
|
||||||
|
expect(afterPayErrorAlert.isVisible()).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue