Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6f2f2eedc |
@@ -151,20 +151,6 @@ function loadedProps(nextPortfolio: Portfolio = portfolio) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe("AccountPage states", () => {
|
describe("AccountPage states", () => {
|
||||||
it("shows the loaded portfolio source sync status", async () => {
|
|
||||||
server.use(
|
|
||||||
http.get("*/api/v1/brokerage-accounts/:accountId/portfolio", () =>
|
|
||||||
HttpResponse.json(resource(portfolio, { freshness: "stale" })),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
renderAccountRoute(createTestQueryClient());
|
|
||||||
|
|
||||||
expect(
|
|
||||||
await screen.findByText("Данные требуют обновления"),
|
|
||||||
).toBeInTheDocument();
|
|
||||||
expect(screen.getByText(/Данные на 14\.08\.2026/)).toBeInTheDocument();
|
|
||||||
});
|
|
||||||
|
|
||||||
it.each(
|
it.each(
|
||||||
["account-1", "all"].flatMap(accountId =>
|
["account-1", "all"].flatMap(accountId =>
|
||||||
["STOCK", "BOND"].flatMap(type =>
|
["STOCK", "BOND"].flatMap(type =>
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ const AccountPage: FC = () => {
|
|||||||
positionSections={viewModel.positionSections}
|
positionSections={viewModel.positionSections}
|
||||||
recentEvents={viewModel.recentEvents}
|
recentEvents={viewModel.recentEvents}
|
||||||
recentOperations={viewModel.recentOperations}
|
recentOperations={viewModel.recentOperations}
|
||||||
source={viewModel.source}
|
|
||||||
unrealizedReturns={viewModel.unrealizedReturns}
|
unrealizedReturns={viewModel.unrealizedReturns}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user