У меня есть компонент уровня страницы, который реализует компонент BookingInformation со слотами. В компоненте Page есть еще один компонент BookingInformationHeader со слотами. заголовок и по умолчанию .
У меня вопрос, как мне настроить тест, чтобы я мог проверить, что GoogleConversionTrackingImage виден, когда @Reservation.State wasBookingJustMade
меняется на true?
<script lang="ts">
import { Vue, Component } from "vue-property-decorator";
import { Reservation } from "@/store/vuex-decorators";
import { BookingInformation, BookingInformationHeader } from "@/components";
import GoogleConversionTrackingImage from './components/GoogleConversionTrackingImage.vue';
@Component({
components: {
BookingInformation,
BookingInformationHeader,
GoogleConversionTrackingImage
}
})
export default class ConfirmationPage extends Vue {
renderTrackingImage: boolean = false;
@Reservation.State wasBookingJustMade: boolean;
}
</script>
<template>
<booking-information page-type="confirmation-page" class="confirmation-page">
<template slot="header" slot-scope="bookingInfo">
<booking-information-header>
<template slot="buttons">
// some buttons
</template>
</booking-information-header>
<google-conversion-tracking-image v-if="wasBookingJustMade" />
</template>
</booking-information>
</template>