manual test for mini ob

This commit is contained in:
Jake Norbut committed 2019-04-29 13:48:50 -05:00
1 parent da1ae1b410
commit 2d4e2c84b5
1 file changed
+55
+55
View File
@@ -0,0 +1,55 @@
Mini Order Book UI Test
MiniOB opens with middle click
Place a couple limit orders at a specific price in the ladder
Middle click on the badge
The Mini OB should open
Verify that miniob shows working orders for your desired security and price
Verify MiniOB closes by each of the following
Cancel the last working order that is displayed
Press the escape key while the qty and price are not currently being edited
Click outside of the miniob popup window
Cancel button
Verify that pressing the cancel button for a given order row actually cancels that order (comparing against qty and/or time may be helpful here since we do not display order ids in miniob)
Row edit mode behavior
Click a miniob row to put the row in edit mode
The row's background color should change to reflect it is the currently selected row
The quantity and price cells should present text boxes to reflect they are editable
The checkmark button should remain disabled, both visually and functionally
-- Text Box Edit Mode behavior
If your mouse is over either the quantity or price cell when the row is put into edit mode, the current value of the textbox should be selected so that it can be immediately typed over with the keyboard.
Scrolling the mousewheel while over the textbox should increment and decrement qty and price (according to tick size) appropriately
When the original value of a text box has changed, the green arrow to the right will present a green background color and white foreground color
Pressing the up/down arrow keys should increment and decrement qty and price (according to tick size) appropriately
ibid
Pressing the enter key should commit your current change(s) and take the row out of edit mode
The MiniOB should remain open after such an operation
The qty field should update to reflect the new quantity
If the price was changed, that order should no longer be visible since it's now working at a different level
Pressing the escape key while the cursor is in an edited textbox will restore the original value
If only 1 textbox had a pending edit that was reverted, the check button should go back to a disabled state
Pressing the tab key while in edit mode should cycle between editing the Qty and Price fields
Once a change is pending, the tab key will extend the tab cycle to the check button as well
If a new row is selected while the current row's pending change hasn't yet been committed, the qty and/or price textboxes for the original row should *remain* in edit mode and the check button should remain enabled
Confirm that if you only have a pending change in the qty textbox and select a new row, only the qty textbox from the original row remains in edit mode
Repeat for price
Repeat for both
Verify that pressing enter and/or clicking the check button only commits the current row
Clicking the update button will put the row in edit mode and bring up an additonal popup that will also allow for price and size modifications (for now)
Change the qty in the update popup and verify the row's qty textbox updates to reflect the changed-to value and that the the check button is still disabled (i.e. the Update popup has committed the change already, so there is *not* any additional pending change)
Change the price in the update popup and the row will disappear from the miniob since the order is now at a different price
A(attach)/D(etach) buttons
Click on the A button brings and bring up the attach popup
Attach a limit to an IB
Verify the limit row's A button has changed to a D
Verify the limit row is now a child to an IB order row
Click on D button on the limit order
Verify the limit row's D button has now changed to an A
Verify the limit row is no longer a child to the IB
Verify the IB order is now canceled