CSR-1012 bug fixes for header text and zip on modal open
This commit is contained in:
parent
9fa85f6295
commit
744939503b
3 changed files with 7 additions and 0 deletions
|
|
@ -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, {
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ export default {
|
|||
},
|
||||
|
||||
onModalOpened() {
|
||||
this.serviceZipCodeInput = this.serviceZipModel.zipCode;
|
||||
this.focusOnZipInput();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue