Skip to content

Commit

Permalink
#20: Default fields test updated according to current behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostenko committed Jan 31, 2013
1 parent ac82eb7 commit c1da9a0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ public void setup() {

@Test
public void allEntityFieldsAreDisplayedWhenQuickViewIsNotConfigured() {
final QuickViewComponent quickViewComponent = testOrderListPage.showQuickViewForItem( 1 );
final QuickViewComponent quickViewComponent = testOrderListPage.showQuickViewForItem( 3 );

String[] quickViewFieldNames = quickViewComponent.getQuickViewFieldNames();
String[] quickViewFieldValues= quickViewComponent.getQuickViewFieldValues();

assertQuickViewFields( new String[]{ "Id:", "OrderTotal:", "Name:", "LineItems:" }, quickViewFieldNames );
assertQuickViewFieldValues( new String[]{ "1", "62100", "Order1: 100 line items", " " }, quickViewFieldValues );
assertQuickViewFieldValues( new String[]{ "3", "226308", "Order3: 3 line items", "TestLineItem #101\n" +
"TestLineItem #102\n" +
"TestLineItem #103" }, quickViewFieldValues );
}
}

0 comments on commit c1da9a0

Please sign in to comment.