Skip to content

Commit

Permalink
tests: fix stories files
Browse files Browse the repository at this point in the history
Stories files used for testing were missing some fixtures.
This commit adds all missing parameters.

Epic: none

Release note: None
  • Loading branch information
maryliag committed Jul 19, 2023
1 parent 30acaf9 commit fb97251
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,3 +541,5 @@ export const timeScale: TimeScale = {
fixedWindowEnd: moment.utc("2021.12.31"),
key: "Custom",
};

export const requestTime = moment.utc("2023.01.5");
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { MemoryRouter } from "react-router-dom";
import { noop } from "lodash";
import {
nodeRegions,
requestTime,
routeProps,
timeScale,
transactionDetailsData,
Expand Down Expand Up @@ -46,6 +47,8 @@ storiesOf("Transactions Details", module)
refreshTransactionInsights={noop}
limit={100}
reqSortSetting={StatsSortOptions.SERVICE_LAT}
requestTime={requestTime}
onRequestTimeChange={noop}
txnStatsResp={{
lastUpdated: moment(),
error: null,
Expand All @@ -71,6 +74,8 @@ storiesOf("Transactions Details", module)
refreshTransactionInsights={noop}
limit={100}
reqSortSetting={StatsSortOptions.SERVICE_LAT}
requestTime={requestTime}
onRequestTimeChange={noop}
txnStatsResp={{
lastUpdated: moment(),
error: null,
Expand All @@ -96,6 +101,8 @@ storiesOf("Transactions Details", module)
refreshTransactionInsights={noop}
limit={100}
reqSortSetting={StatsSortOptions.SERVICE_LAT}
requestTime={moment()}
onRequestTimeChange={noop}
txnStatsResp={{
lastUpdated: moment(),
error: null,
Expand All @@ -122,6 +129,8 @@ storiesOf("Transactions Details", module)
refreshTransactionInsights={noop}
limit={100}
reqSortSetting={StatsSortOptions.SERVICE_LAT}
requestTime={requestTime}
onRequestTimeChange={noop}
txnStatsResp={{
lastUpdated: moment(),
error: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const timeScale: TimeScale = {
export const timestamp = new protos.google.protobuf.Timestamp({
seconds: new Long(Date.parse("Sep 15 2021 01:00:00 GMT") * 1e-3),
});
export const requestTime = moment.utc("2023.01.5");

export const sortSetting: SortSetting = {
ascending: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
filters,
lastUpdated,
nodeRegions,
requestTime,
routeProps,
sortSetting,
timeScale,
Expand Down Expand Up @@ -69,6 +70,8 @@ storiesOf("Transactions Page", module)
resetSQLStats={noop}
search={""}
sortSetting={sortSetting}
requestTime={requestTime}
onRequestTimeChange={noop}
{...defaultLimitAndSortProps}
/>
);
Expand Down Expand Up @@ -99,6 +102,8 @@ storiesOf("Transactions Page", module)
resetSQLStats={noop}
search={""}
sortSetting={sortSetting}
requestTime={requestTime}
onRequestTimeChange={noop}
{...defaultLimitAndSortProps}
/>
);
Expand Down Expand Up @@ -136,6 +141,8 @@ storiesOf("Transactions Page", module)
resetSQLStats={noop}
search={""}
sortSetting={sortSetting}
requestTime={requestTime}
onRequestTimeChange={noop}
{...defaultLimitAndSortProps}
/>
);
Expand Down Expand Up @@ -166,6 +173,8 @@ storiesOf("Transactions Page", module)
resetSQLStats={noop}
search={""}
sortSetting={sortSetting}
requestTime={requestTime}
onRequestTimeChange={noop}
{...defaultLimitAndSortProps}
/>
);
Expand Down Expand Up @@ -200,6 +209,8 @@ storiesOf("Transactions Page", module)
resetSQLStats={noop}
search={""}
sortSetting={sortSetting}
requestTime={requestTime}
onRequestTimeChange={noop}
{...defaultLimitAndSortProps}
/>
);
Expand Down

0 comments on commit fb97251

Please sign in to comment.