diff --git a/package.json b/package.json index 36ef31b01..43e72f578 100644 --- a/package.json +++ b/package.json @@ -153,5 +153,8 @@ "engines": { "node": ">= 14.0.0", "npm": ">= 3.0.0" + }, + "dependencies": { + "vue-observe-visibility": "^1.0.0" } } diff --git a/src/components/molecules/OcBreadcrumb/OcBreadcrumb.spec.js b/src/components/molecules/OcBreadcrumb/OcBreadcrumb.spec.js index 6d4e78ea4..38d87fb89 100644 --- a/src/components/molecules/OcBreadcrumb/OcBreadcrumb.spec.js +++ b/src/components/molecules/OcBreadcrumb/OcBreadcrumb.spec.js @@ -18,7 +18,7 @@ describe("OcBreadcrumb", () => { }) expect(wrapper.props().variation).toMatch("lead") - expect(wrapper.classes()).toContain("oc-breadcrumb-lead") + expect(wrapper.html()).toContain("oc-breadcrumb oc-breadcrumb-lead") expect(wrapper).toMatchSnapshot() }) it("displays all items", () => { diff --git a/src/components/molecules/OcBreadcrumb/OcBreadcrumb.vue b/src/components/molecules/OcBreadcrumb/OcBreadcrumb.vue index bfaf840ee..329cc57b3 100644 --- a/src/components/molecules/OcBreadcrumb/OcBreadcrumb.vue +++ b/src/components/molecules/OcBreadcrumb/OcBreadcrumb.vue @@ -1,95 +1,96 @@ @@ -168,6 +249,17 @@ export default {