From 6e174012965742fb80851b2749847a5bdcf00d2c Mon Sep 17 00:00:00 2001 From: tanmoyopenroot Date: Sat, 3 Aug 2019 18:10:28 +0530 Subject: [PATCH] use tabindex prop in + ", () => { @@ -35,6 +35,22 @@ describe("", () => { expectCellLoading(editableCellHarness.first().getDOMNode(), CellType.BODY_CELL); }); + it("renders cell with default tabIndex as zero", () => { + const tabIndex = 0; + const elem = mount(); + const cellInstance = elem.find(Cell).instance() as Cell; + + expect(cellInstance.props.tabIndex).to.equal(tabIndex); + }); + + it("renders cell with tabIndex", () => { + const tabIndex = 1; + const elem = mount(); + const cellInstance = elem.find(Cell).instance() as Cell; + + expect(cellInstance.props.tabIndex).to.equal(tabIndex); + }); + it("renders new value if props.value changes", () => { const VALUE_1 = "foo"; const VALUE_2 = "bar";