fix(cypress): make test chart time range deterministic (#22567)

This commit is contained in:
Ville Brofeldt 2023-01-03 07:46:40 +00:00 committed by GitHub
parent 7df1d70a95
commit 38d02a10b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -168,12 +168,10 @@ def create_slices(tbl: SqlaTable) -> Tuple[List[Slice], List[Slice]]:
"compare_lag": "10",
"compare_suffix": "o10Y",
"limit": "25",
"time_range": "No filter",
"granularity_sqla": "ds",
"groupby": [],
"row_limit": app.config["ROW_LIMIT"],
"since": "100 years ago",
"until": "now",
"time_range": "100 years ago : now",
"viz_type": "table",
"markup_type": "markdown",
}
@ -419,8 +417,7 @@ def create_slices(tbl: SqlaTable) -> Tuple[List[Slice], List[Slice]]:
params=get_slice_json(
defaults,
groupby=["ds"],
since="40 years ago",
until="now",
time_range="1983 : 2023",
viz_type="table",
metrics=metrics,
),