mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: V1 charts load cypress tests (#11685)
* Enabled assertion on v1 chart request * added missing code after rebase * extracted alias logic to function * modified v1 requests to contain form data, added assertion on ui elements using slice id from request
This commit is contained in:
committed by
GitHub
parent
700c7c524e
commit
2f036e9359
@@ -152,9 +152,12 @@ const v1ChartDataRequest = async (
|
||||
});
|
||||
|
||||
// The dashboard id is added to query params for tracking purposes
|
||||
const qs = requestParams.dashboard_id
|
||||
? { dashboard_id: requestParams.dashboard_id }
|
||||
: {};
|
||||
const { slice_id: sliceId } = formData;
|
||||
const { dashboard_id: dashboardId } = requestParams;
|
||||
const qs = {};
|
||||
if (sliceId !== undefined) qs.form_data = `{"slice_id":${sliceId}}`;
|
||||
if (dashboardId !== undefined) qs.dashboard_id = dashboardId;
|
||||
|
||||
const allowDomainSharding =
|
||||
// eslint-disable-next-line camelcase
|
||||
domainShardingEnabled && requestParams?.dashboard_id;
|
||||
|
||||
Reference in New Issue
Block a user