17 lines
678 B
JavaScript
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();
|
|
});
|
|
});
|