Skip to content

Commit 7b3c00b

Browse files
authored
4832 / Skipped test (#2210)
* initial test to see if format number test runs in CI * remove only modifier in test * redo line chart test * fix import * fix notional test * display pop up in web * remove snapshot * remove PNL snapshot test * test set filter * initial date filter test * handle date filter * Quick test across columns
1 parent 6b6c4cf commit 7b3c00b

File tree

12 files changed

+202
-486
lines changed

12 files changed

+202
-486
lines changed

src/client/src/App/Analytics/PnL/__tests__/PNLBar.test.tsx

-13
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,4 @@ describe("PNLBar", () => {
2727

2828
expect(screen.getByTestId("priceLabel").textContent).toBe(`-26,043.69`)
2929
})
30-
31-
it("renders the bar correctly", () => {
32-
const { container } = render(
33-
<TestThemeProvider>
34-
<PNLBar
35-
symbol={"EURAUD"}
36-
basePnl={-26043.691207338878}
37-
maxVal={1239939.1231111237}
38-
/>
39-
</TestThemeProvider>,
40-
)
41-
expect(container.firstChild).toMatchSnapshot()
42-
})
4330
})

src/client/src/App/Analytics/PnL/__tests__/__snapshots__/PNLBar.test.tsx.snap

-150
This file was deleted.

src/client/src/App/Analytics/Positions/__tests__/Positions.test.tsx

-29
Original file line numberDiff line numberDiff line change
@@ -119,33 +119,4 @@ describe("Positions", () => {
119119

120120
expect(screen.getByTestId("tooltip").textContent).toBe("AUD -1,557,031")
121121
})
122-
123-
// TODO (5350): fix test failure - Windows snapshot incompatible with Mac
124-
it.skip("should display the correct bubble chart", async () => {
125-
const positionMock$ = new BehaviorSubject<
126-
Record<string, CurrencyPairPosition>
127-
>(positionMock)
128-
analyticsMock.__setPositionMock(positionMock$)
129-
130-
const subscription = positions$.subscribe()
131-
const { container } = render(
132-
<TestThemeProvider>
133-
<Subscribe source$={positions$} fallback="No data">
134-
<Positions />
135-
</Subscribe>
136-
</TestThemeProvider>,
137-
)
138-
139-
expect(container.firstChild).toMatchSnapshot()
140-
141-
act(() => {
142-
positionMock$.next(positionMock2)
143-
})
144-
145-
await new Promise((res) => setTimeout(res, 2200))
146-
147-
expect(container.firstChild).toMatchSnapshot()
148-
149-
subscription.unsubscribe()
150-
})
151122
})

src/client/src/App/Analytics/Positions/__tests__/__snapshots__/Positions.test.tsx.snap

-187
This file was deleted.

0 commit comments

Comments
 (0)