-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first cut keyboard nav large datasets * simplify getFullRange and adjust tests accordingly * page up down accuracy * fix click scroll track to scroll * fix issue in keyset * fix issue with page down when running with vuu server data * initial scrolling tests * exclude cypress test helper from linting * address review suggestions
- Loading branch information
Showing
31 changed files
with
1,012 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
vuu-ui/packages/vuu-table/src/__tests__/__component__/Table.cy.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from "react"; | ||
// TODO try and get TS path alias working to avoid relative paths like this | ||
import { SimulTable } from "../../../../../showcase/src/examples/Table/SIMUL.examples"; | ||
import { TestTable } from "../../../../../showcase/src/examples/Table/Table.examples"; | ||
import { assertRenderedRows } from "./table-test-utils"; | ||
|
||
const withAriaIndex = (index: number) => ({ | ||
name: (_: string, el: Element) => el.ariaRowIndex === `${index}`, | ||
}); | ||
|
||
describe("WHEN it initially renders", () => { | ||
const RENDER_BUFFER = 5; | ||
const ROW_COUNT = 1000; | ||
const tableConfig = { | ||
renderBufferSize: RENDER_BUFFER, | ||
headerHeight: 25, | ||
height: 625, | ||
rowCount: ROW_COUNT, | ||
rowHeight: 20, | ||
width: 1000, | ||
}; | ||
|
||
it("THEN expected classname is present", () => { | ||
cy.mount( | ||
<SimulTable | ||
data-testid="table" | ||
renderBufferSize={5} | ||
height={625} | ||
tableName="instruments" | ||
width={800} | ||
/> | ||
); | ||
const container = cy.findByTestId("table"); | ||
container.should("have.class", "vuuTable"); | ||
}); | ||
|
||
it("THEN expected number of rows are present, with buffered rows, all with correct aria index", () => { | ||
cy.mount(<TestTable {...tableConfig} />); | ||
assertRenderedRows({ from: 0, to: 30 }, RENDER_BUFFER, ROW_COUNT); | ||
}); | ||
}); |
Oops, something went wrong.