DigitalConsumer.FixMyGlass/src/ux-components/intercept-overlay/intercept-overlay.spec.js
scottkiener-at-safelite 07a450104f CASH-2880 | Unit tests
2026-06-24 09:49:48 -04:00

17 lines
678 B
JavaScript

import { shallowMount } from "@vue/test-utils";
import interceptOverlay from "./intercept-overlay";
describe("intercept-overlay.vue", () => {
test("renders the overlay container with aria-hidden", () => {
const wrapper = shallowMount(interceptOverlay);
expect(wrapper.find(".intercept-overlay").exists()).toBe(true);
expect(wrapper.find(".intercept-overlay").attributes("aria-hidden")).toBe("true");
wrapper.unmount();
});
test("renders as a single root element with no visible content", () => {
const wrapper = shallowMount(interceptOverlay);
expect(wrapper.text()).toBe("");
wrapper.unmount();
});
});