mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(cypress): make test chart time range deterministic (#22567)
This commit is contained in:
@@ -168,12 +168,10 @@ def create_slices(tbl: SqlaTable) -> Tuple[List[Slice], List[Slice]]:
|
|||||||
"compare_lag": "10",
|
"compare_lag": "10",
|
||||||
"compare_suffix": "o10Y",
|
"compare_suffix": "o10Y",
|
||||||
"limit": "25",
|
"limit": "25",
|
||||||
"time_range": "No filter",
|
|
||||||
"granularity_sqla": "ds",
|
"granularity_sqla": "ds",
|
||||||
"groupby": [],
|
"groupby": [],
|
||||||
"row_limit": app.config["ROW_LIMIT"],
|
"row_limit": app.config["ROW_LIMIT"],
|
||||||
"since": "100 years ago",
|
"time_range": "100 years ago : now",
|
||||||
"until": "now",
|
|
||||||
"viz_type": "table",
|
"viz_type": "table",
|
||||||
"markup_type": "markdown",
|
"markup_type": "markdown",
|
||||||
}
|
}
|
||||||
@@ -419,8 +417,7 @@ def create_slices(tbl: SqlaTable) -> Tuple[List[Slice], List[Slice]]:
|
|||||||
params=get_slice_json(
|
params=get_slice_json(
|
||||||
defaults,
|
defaults,
|
||||||
groupby=["ds"],
|
groupby=["ds"],
|
||||||
since="40 years ago",
|
time_range="1983 : 2023",
|
||||||
until="now",
|
|
||||||
viz_type="table",
|
viz_type="table",
|
||||||
metrics=metrics,
|
metrics=metrics,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user