LogonWindowWidgets.enterLoginName(rootWindow, "Bill");
LogonWindowWidgets.enterPassword(rootWindow, "Robinson");
assertEquals("Bill", LogonWindowWidgets.getActualWindow(rootWindow).getLoginName().toString());
LogonWindowWidgets.clickAsCustomerBtn(rootWindow);
FrameFixture custWin1 = CustomerWindowWidgets.getWindowAsAsyncChildOf(rootWindow);
CustomerWindowWidgets.clickExitBtn(custWin1);
DisplayProjectTestUtils.finishWithAsyncWindow();
LogonWindowWidgets.clickAsCustomerBtn(rootWindow);
// Find the window (started asynchronously)
FrameFixture custWin = CustomerWindowWidgets.getWindowAsAsyncChildOf(rootWindow);
assertEquals("Customer Stock Holdings", custWin.target.getTitle());
CustomerWindowWidgets.checkCustomerGrid_CustomerNameIs(custWin, "Bill");
CustomerWindowWidgets.clickBuyBtn(custWin);
// Find the window, started synchronously
FrameFixture orderWin = OrderWindowWidgets.getWindowAsChildOf(custWin);
OrderWindowWidgets.checkNewOrderGrid_CustomerNameIs(orderWin, "Bill");
OrderWindowWidgets.enterNewOrderGrid_Price(orderWin, "10");
OrderWindowWidgets.enterNewOrderGrid_Quantity(orderWin, "5");
OrderWindowWidgets.clickSubmitBtn(orderWin);
orderWin.optionPane().okButton().click();
CustomerWindowWidgets.clickExitBtn(custWin);
DisplayProjectTestUtils.finishWithAsyncWindow();
}