diff --git a/src/digital-components/modal/modal.spec.js b/src/digital-components/modal/modal.spec.js index 5feaf0216..7ed8fff12 100644 --- a/src/digital-components/modal/modal.spec.js +++ b/src/digital-components/modal/modal.spec.js @@ -1,10 +1,13 @@ import { shallowMount } from "@vue/test-utils"; import Modal from "./modal"; +import crypto from "crypto"; const modalId = "modal-one"; const footerButtonText = "Sample footer text here."; const headerText = "Sample header text here."; +global.crypto = crypto; + describe("modal.vue", () => { it("Should display footer button text when footerButtonText is defined", async () => { const wrapper = shallowMount(Modal, { diff --git a/src/fmg-components/content-group-modal/content-group-modal.spec.js b/src/fmg-components/content-group-modal/content-group-modal.spec.js index a8058b2d5..cbdf6e182 100644 --- a/src/fmg-components/content-group-modal/content-group-modal.spec.js +++ b/src/fmg-components/content-group-modal/content-group-modal.spec.js @@ -1,5 +1,8 @@ import { mount } from "@vue/test-utils"; import contentGroupModal from "./content-group-modal"; +import crypto from "crypto"; + +global.crypto = crypto; describe("content-group-modal.vue", () => { it("Should display header text when HeaderText is defined in the CMS", async () => { diff --git a/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue index 371754477..c8352697c 100644 --- a/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue +++ b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue @@ -127,6 +127,7 @@ export default { }, onModalOpened() { + this.serviceZipCodeInput = this.serviceZipModel.zipCode; this.focusOnZipInput(); },