Skip to content

Commit

Permalink
4832 / Skipped test (#2210)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
snony14 authored Jun 21, 2023
1 parent 6b6c4cf commit 7b3c00b
Show file tree
Hide file tree
Showing 12 changed files with 202 additions and 486 deletions.
13 changes: 0 additions & 13 deletions src/client/src/App/Analytics/PnL/__tests__/PNLBar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,4 @@ describe("PNLBar", () => {

expect(screen.getByTestId("priceLabel").textContent).toBe(`-26,043.69`)
})

it("renders the bar correctly", () => {
const { container } = render(
<TestThemeProvider>
<PNLBar
symbol={"EURAUD"}
basePnl={-26043.691207338878}
maxVal={1239939.1231111237}
/>
</TestThemeProvider>,
)
expect(container.firstChild).toMatchSnapshot()
})
})

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -119,33 +119,4 @@ describe("Positions", () => {

expect(screen.getByTestId("tooltip").textContent).toBe("AUD -1,557,031")
})

// TODO (5350): fix test failure - Windows snapshot incompatible with Mac
it.skip("should display the correct bubble chart", async () => {
const positionMock$ = new BehaviorSubject<
Record<string, CurrencyPairPosition>
>(positionMock)
analyticsMock.__setPositionMock(positionMock$)

const subscription = positions$.subscribe()
const { container } = render(
<TestThemeProvider>
<Subscribe source$={positions$} fallback="No data">
<Positions />
</Subscribe>
</TestThemeProvider>,
)

expect(container.firstChild).toMatchSnapshot()

act(() => {
positionMock$.next(positionMock2)
})

await new Promise((res) => setTimeout(res, 2200))

expect(container.firstChild).toMatchSnapshot()

subscription.unsubscribe()
})
})

This file was deleted.

Loading

0 comments on commit 7b3c00b

Please sign in to comment.