SSR-1081 changed ref to name for unit test

This commit is contained in:
Matt Caimi 2024-03-08 16:35:30 -05:00
parent d9d4b14d08
commit f24668080b
2 changed files with 2 additions and 2 deletions

View file

@ -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();
});

View file

@ -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"