Moved 'useForm' into modal component

This commit is contained in:
Leah Schumann 2023-02-13 15:08:00 -05:00
commit ac99ddfbb4
3 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,6 @@
import { shallowMount } from "@vue/test-utils";
import Modal from "./modal";
import crypto from "crypto";
import { useForm } from "vee-validate";
const modalId = "modal-one";
const footerButtonText = "Sample footer text here.";

View file

@ -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 () => {

View file

@ -120,6 +120,7 @@ export default {
},
onModalOpened() {
this.serviceZipCodeInput = this.serviceZipModel.zipCode;
this.focusOnZipInput();
},