SSR-1081 changed ref to name for unit test
This commit is contained in:
parent
d9d4b14d08
commit
f24668080b
2 changed files with 2 additions and 2 deletions
|
|
@ -463,7 +463,7 @@ describe('payment-page.vue', () => {
|
|||
// Act
|
||||
|
||||
// Assert
|
||||
const creditCardErrorAlert = wrapper.findComponent({ ref: 'payInAdvanceCreditCardErrorAlert' });
|
||||
const creditCardErrorAlert = wrapper.find('[name="payInAdvanceCreditCardErrorAlert"]');
|
||||
expect(creditCardErrorAlert.exists()).toBeTruthy();
|
||||
expect(creditCardErrorAlert.isVisible()).toBeTruthy();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<div class="container-fluid pb-2 payment">
|
||||
<alert
|
||||
v-if="displayPayInAdvanceCreditCardAlert"
|
||||
ref="payInAdvanceCreditCardErrorAlert"
|
||||
name="payInAdvanceCreditCardErrorAlert"
|
||||
class="my-4"
|
||||
cmsWidgetName="PayInAdvanceCreditCardErrorAlertWidget"
|
||||
alertClass="alert-danger"
|
||||
|
|
|
|||
Loading…
Reference in a new issue