This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Lazily Loaded Set of Loans
Jeff Lage edited this page May 11, 2015
·
12 revisions
Given there are 200 loans
And a presentation limit of 100 loans
When presenting the list of loans
Then only the first 100 loans should be shown
Given there are 200 loans
And a presentation limit of 100 loans
When the viewport scrolls to show the 90th or higher loan
Then Loans 101 - 200 should be added to the bottom of the table
And Loans 1 - 100 should not re-render in any way
And the grid chrome (such as headers) should not re-render in any way
And the size of the table should not expand, though it should remain scrollable
and none of the previously loaded loans should be removed from the model
Given there are 300 loans
And a presentation limit of 100 loans
When the viewport scrolls to show the 190th or higher loan
Then Loans 201 - 300 should be added to the bottom of the table
And Loans 1 - 200 should not re-render in any way
And the grid chrome (aka, headers, scrollbars) should not re-render in any way
And the size of the table should not expand, though it should remain scrollable
Given there are 600 loans
And only 100 have been loaded from the server
When the scrollbar / indicator is rendered
Then it should be of a size indicative of the total dataset
- The loans are coming from the server side in chunks, on a JIT basis.
- The number combinations (90/100 & 270/300) are indicating a 90% position through the series.