Skip to content

Commit 3c4d5b6

Browse files
committed
fix: trade page test case
1 parent a885928 commit 3c4d5b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/screens/TradePage/__tests__/TradePage.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('TradePage', () => {
168168
expect(tradePage.className).toContain('flex');
169169
expect(tradePage.className).toContain('flex-col');
170170
expect(tradePage.className).toContain('flex-1');
171-
expect(tradePage.className).toContain('h-[100dvh]');
171+
expect(tradePage.className).toContain('h-[100%]');
172172
});
173173

174174
it('renders in landscape mode', async () => {
@@ -185,7 +185,6 @@ describe('TradePage', () => {
185185

186186
// Balance display should be visible in landscape mode
187187
expect(screen.getByTestId('bottom-sheet')).toBeInTheDocument();
188-
expect(screen.getByTestId('duration-options')).toBeInTheDocument();
189188
expect(screen.getByTestId('market-selector')).toBeInTheDocument();
190189

191190
// // Check for MarketInfo with selected market
@@ -197,7 +196,7 @@ describe('TradePage', () => {
197196
expect(tradePage.className).toContain('flex-row');
198197
expect(tradePage.className).toContain('relative');
199198
expect(tradePage.className).toContain('flex-1');
200-
expect(tradePage.className).toContain('h-[100dvh]');
199+
expect(tradePage.className).toContain('h-[100%]');
201200
});
202201

203202
it('shows "Select Market" when no market is selected', () => {

0 commit comments

Comments
 (0)