diff --git a/frontend/components/receipts/utils/order-table.spec.tsx b/frontend/components/receipts/utils/order-table.spec.tsx index 586303344..ceb870f55 100644 --- a/frontend/components/receipts/utils/order-table.spec.tsx +++ b/frontend/components/receipts/utils/order-table.spec.tsx @@ -81,11 +81,26 @@ describe('OrderTable', () => { peggedOrder: { reference: vegaPeggedReference.PEGGED_REFERENCE_BEST_BID, offset: '6' + }, + icebergOpts: { + minimumVisibleSize: '1', + peakSize: '2' } }) - const [priceRow, peggedInfoRow, sizeRow, marketRow, marketIdRow, orderRow, directionRow, typeRow, referenceRow] = - screen.getAllByTestId(dataTableLocators.dataRow) + const [ + priceRow, + peggedInfoRow, + sizeRow, + marketRow, + marketIdRow, + orderRow, + directionRow, + typeRow, + referenceRow, + icebergPeakRow, + icebergMinRow + ] = screen.getAllByTestId(dataTableLocators.dataRow) expect(priceRow).toHaveTextContent('Price') expect(priceRow).toHaveTextContent('123') @@ -112,7 +127,13 @@ describe('OrderTable', () => { expect(referenceRow).toHaveTextContent('Reference') expect(referenceRow).toHaveTextContent('ref') - expect(screen.getAllByTestId(dataTableLocators.dataRow)).toHaveLength(9) + + expect(icebergPeakRow).toHaveTextContent('Peak size') + expect(icebergPeakRow).toHaveTextContent('2') + + expect(icebergMinRow).toHaveTextContent('Minimum visible size') + expect(icebergMinRow).toHaveTextContent('1') + expect(screen.getAllByTestId(dataTableLocators.dataRow)).toHaveLength(11) }) it('renders fields that are provided from the API', () => { diff --git a/frontend/components/receipts/utils/order-table.tsx b/frontend/components/receipts/utils/order-table.tsx index 9d1e3c804..c9e1f25b0 100644 --- a/frontend/components/receipts/utils/order-table.tsx +++ b/frontend/components/receipts/utils/order-table.tsx @@ -116,7 +116,7 @@ export const OrderTable = (properties: OrderTableProperties) => { props: ['marketId'], render: (icebergOptions, { marketId }) => [ 'Peak size', - + ] }, { @@ -124,7 +124,7 @@ export const OrderTable = (properties: OrderTableProperties) => { props: ['marketId'], render: (icebergOptions, { marketId }) => [ 'Minimum visible size', - + ] } ] diff --git a/frontend/lib/transactions.ts b/frontend/lib/transactions.ts index c8d83ebd2..a869dd42c 100644 --- a/frontend/lib/transactions.ts +++ b/frontend/lib/transactions.ts @@ -105,6 +105,6 @@ export interface TransactionMessage { } export type IcebergOptions = { - peakSize: number - minimumVisibleSize: number + peakSize: string + minimumVisibleSize: string }