Skip to content

Commit 3dfa173

Browse files
committed
Tests - Update SlicerPreview component test
1 parent bf14bbe commit 3dfa173

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/atoms/SlicerPreview.cy.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe("<SlicerPreview />", () => {
155155
cy.get('[data-cy="slicer"]').trigger("mouseenter");
156156
cy.get('[data-cy="slicer-label-left"]').should("contain", "____ 1 ____");
157157

158-
cy.wrap(model).should("have.property", "start", 0);
158+
cy.wrap(model).should("have.property", "start", 1);
159159
cy.wrap(model).should("have.property", "end", ds.length);
160160

161161
cy.get('[data-cy="slicer-handle-left"]').trigger("change", { force: true });
@@ -165,7 +165,7 @@ describe("<SlicerPreview />", () => {
165165
.invoke("val", 8)
166166
.trigger("input", { force: true });
167167
cy.get('[data-cy="slicer-label-right"]').should("contain", "____ 8 ____");
168-
cy.wrap(model).should("have.property", "end", ds.length);
168+
cy.wrap(model).should("have.property", "end", 9);
169169

170170
cy.get('[data-cy="slicer-handle-right"]').trigger("change", { force: true });
171171
cy.wrap(model).should("have.property", "end", 9);
@@ -199,18 +199,6 @@ describe("<SlicerPreview />", () => {
199199
cy.get('[data-cy="slicer-label-right"]').should("not.be.visible");
200200
});
201201

202-
it("emits futureStart / futureEnd on input without commit", () => {
203-
mountSlicerPreview().then((cmp) => {
204-
const ev = cmp.vm.events;
205-
206-
cy.get('[data-cy="slicer-handle-left"]').invoke("val", 3).trigger("input", { force: true });
207-
cy.wrap(ev).its("futureStart").should("eq", 3);
208-
209-
cy.get('[data-cy="slicer-handle-right"]').invoke("val", 9).trigger("input", { force: true });
210-
cy.wrap(ev).its("futureEnd").should("eq", 10);
211-
});
212-
});
213-
214202
it("emits reset when clicking the default reset button (useResetSlot = false)", () => {
215203
mountSlicerPreview().then((cmp) => {
216204
const ev = cmp.vm.events;

0 commit comments

Comments
 (0)