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
|
// Act
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
const creditCardErrorAlert = wrapper.findComponent({ ref: 'payInAdvanceCreditCardErrorAlert' });
|
const creditCardErrorAlert = wrapper.find('[name="payInAdvanceCreditCardErrorAlert"]');
|
||||||
expect(creditCardErrorAlert.exists()).toBeTruthy();
|
expect(creditCardErrorAlert.exists()).toBeTruthy();
|
||||||
expect(creditCardErrorAlert.isVisible()).toBeTruthy();
|
expect(creditCardErrorAlert.isVisible()).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="container-fluid pb-2 payment">
|
<div class="container-fluid pb-2 payment">
|
||||||
<alert
|
<alert
|
||||||
v-if="displayPayInAdvanceCreditCardAlert"
|
v-if="displayPayInAdvanceCreditCardAlert"
|
||||||
ref="payInAdvanceCreditCardErrorAlert"
|
name="payInAdvanceCreditCardErrorAlert"
|
||||||
class="my-4"
|
class="my-4"
|
||||||
cmsWidgetName="PayInAdvanceCreditCardErrorAlertWidget"
|
cmsWidgetName="PayInAdvanceCreditCardErrorAlertWidget"
|
||||||
alertClass="alert-danger"
|
alertClass="alert-danger"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue