This is an automated email from the ASF dual-hosted git repository.
elizabeth pushed a change to branch docs/testing-guidelines-test-function
in repository https://gitbox.apache.org/repos/asf/superset.git
from 572f3392d7 docs(testing): add guidelines for using test() instead of
describe()/it()
add ff102aadb3 refactor(llm): rename LLMS.md to AGENTS.md for modern AI
tools (#35314)
add d62249d13f test(frontend): Migrate from describe/it to flat test()
pattern (#35305)
add 90f281f585 fix: AceEditor Autocomplete Highlight (#35316)
add 3d2c332165 Merge remote-tracking branch 'origin/master' into
docs/testing-guidelines-test-function
No new revisions were added by this update.
Summary of changes:
.github/copilot-instructions.md | 2 +-
.rat-excludes | 1 +
LLMS.md => AGENTS.md | 2 +-
CLAUDE.md | 2 +-
GEMINI.md | 2 +-
GPT.md | 2 +-
superset-frontend/src/.eslintrc.json | 11 ++
.../src/SqlLab/actions/sqlLab.test.js | 142 +++++++++++++--------
.../AceEditorWrapper/AceEditorWrapper.test.tsx | 7 +-
.../SqlLab/components/AceEditorWrapper/index.tsx | 5 +
.../src/SqlLab/components/App/App.test.tsx | 11 +-
.../ColumnElement/ColumnElement.test.tsx | 9 +-
.../EstimateQueryCostButton.test.tsx | 11 +-
.../ExploreCtasResultsButton.test.tsx | 7 +-
.../ExploreResultsButton.test.tsx | 5 +-
.../QueryAutoRefresh/QueryAutoRefresh.test.tsx | 23 ++--
.../QueryLimitSelect/QueryLimitSelect.test.tsx | 15 ++-
.../components/QueryTable/QueryTable.test.tsx | 1 +
.../SqlLab/components/ResultSet/ResultSet.test.tsx | 1 +
.../RunQueryActionButton.test.tsx | 16 +--
.../SaveDatasetActionButton.test.tsx | 1 +
.../SaveDatasetModal/SaveDatasetModal.test.tsx | 27 ++--
.../SqlLab/components/SaveQuery/SaveQuery.test.tsx | 21 +--
.../ShareSqlLabQuery/ShareSqlLabQuery.test.tsx | 6 +-
.../SqlLab/components/SqlEditor/SqlEditor.test.tsx | 29 +++--
.../SqlEditorTabHeader/SqlEditorTabHeader.test.tsx | 18 +--
.../TabbedSqlEditors/TabbedSqlEditors.test.tsx | 1 +
.../components/TablePreview/TablePreview.test.tsx | 1 +
.../TemplateParamsEditor.test.tsx | 9 +-
.../src/SqlLab/reducers/getInitialState.test.ts | 20 +--
.../src/SqlLab/reducers/sqlLab.test.js | 61 +++++----
.../src/SqlLab/utils/emptyQueryResults.test.ts | 7 +-
.../src/SqlLab/utils/newQueryTabName.test.ts | 5 +-
.../components/AlteredSliceTag/utils/utils.test.ts | 47 +++----
.../components/Chart/ChartErrorMessage.test.tsx | 5 +-
.../components/Chart/DrillBy/DrillByModal.test.tsx | 2 +
.../src/components/Chart/chartActions.test.js | 37 +++---
.../src/components/Chart/chartReducers.test.js | 5 +-
.../DatasourceModal/DatasourceModal.test.jsx | 15 ++-
.../DashboardLinksExternal.test.tsx | 1 +
.../tests/DatasourceEditor.test.jsx | 20 +--
.../tests/DatasourceEditorCurrency.test.jsx | 3 +-
.../tests/DatasourceEditorRTL.test.jsx | 10 +-
.../src/components/Datasource/utils/utils.test.tsx | 11 +-
.../components/ErrorMessage/ErrorAlert.test.tsx | 115 +++++++++--------
.../ErrorMessage/InvalidSQLErrorMessage.test.tsx | 11 +-
.../ErrorMessage/MarshmallowErrorMessage.test.tsx | 1 +
.../ErrorMessage/OAuth2RedirectMessage.test.tsx | 13 +-
.../src/components/FacePile/FacePile.test.tsx | 21 +--
.../FilterableTable/FilterableTable.test.tsx | 20 +--
.../src/components/GridTable/HeaderMenu.test.tsx | 1 +
.../src/components/ListView/ListView.test.jsx | 17 +--
.../src/components/MessageToasts/reducers.test.js | 39 +++---
.../ModalTitleWithIcon/ModalTitleWithIcon.test.tsx | 63 +++++----
.../ResizableSidebar/useStoredSidebarWidth.test.ts | 7 +-
.../SQLEditorWithValidation.test.tsx | 35 ++---
.../src/components/Tag/utils.test.tsx | 2 +
.../src/components/TagsList/TagsList.test.tsx | 1 +
.../src/dashboard/actions/dashboardLayout.test.js | 52 +++++---
.../src/dashboard/actions/dashboardState.test.js | 11 +-
.../components/AnchorLink/AnchorLink.test.tsx | 7 +-
.../src/dashboard/components/Dashboard.test.jsx | 27 ++--
.../DashboardBuilder/DashboardBuilder.test.tsx | 37 +++---
.../components/FiltersBadge/FiltersBadge.test.tsx | 2 +
.../src/dashboard/components/MissingChart.test.tsx | 5 +-
.../PropertiesModal/PropertiesModal.test.tsx | 1 +
.../sections/StylingSection.test.tsx | 1 +
.../src/dashboard/components/SliceAdder.test.tsx | 24 ++--
.../components/dnd/DragDroppable.test.jsx | 19 +--
.../ChartHolder/ChartHolder.test.tsx | 23 ++--
.../gridComponents/Divider/Divider.test.jsx | 9 +-
.../DynamicComponent/DynamicComponent.test.tsx | 1 +
.../gridComponents/Header/Header.test.jsx | 21 +--
.../gridComponents/Markdown/Markdown.test.jsx | 21 +--
.../components/gridComponents/Row/Row.test.jsx | 1 +
.../TabsRenderer/TabsRenderer.test.tsx | 1 +
.../new/DraggableNewComponent.test.jsx | 11 +-
.../FilterBar/ActionButtons/ActionButtons.test.tsx | 5 +-
.../ScopingModal/ChartsScopingListPanel.test.tsx | 8 +-
.../ScopingModal/ScopingModal.test.tsx | 10 +-
.../nativeFilters/FilterBar/FilterBar.test.tsx | 29 +++--
.../nativeFilters/FilterBar/utils.test.ts | 4 +
.../FiltersConfigForm/CollapsibleControl.test.tsx | 19 +--
.../__tests__/TreeInitialization.test.tsx | 3 +-
.../FilterScope/__tests__/TreeSelection.test.tsx | 5 +-
.../FiltersConfigForm/FilterScope/utils.test.ts | 5 +-
.../FiltersConfigForm/getControlItemsMap.test.tsx | 1 +
.../FiltersConfigModal/NativeFiltersModal.test.tsx | 1 +
.../components/nativeFilters/selectors.test.ts | 15 ++-
.../components/nativeFilters/state.test.ts | 10 +-
.../components/nativeFilters/utils.test.ts | 9 +-
.../resizable/ResizableContainer.test.tsx | 3 +-
.../components/resizable/ResizableHandle.test.tsx | 7 +-
.../dashboard/reducers/dashboardFilters.test.js | 7 +-
.../src/dashboard/reducers/dashboardLayout.test.js | 23 ++--
.../src/dashboard/reducers/dashboardState.test.js | 27 ++--
.../src/dashboard/reducers/dashboardState.test.ts | 8 +-
.../src/dashboard/reducers/sliceEntities.test.js | 9 +-
.../dashboard/util/componentIsResizable.test.ts | 5 +-
.../src/dashboard/util/dnd-reorder.test.js | 19 +--
.../src/dashboard/util/dropOverflowsParent.test.ts | 15 ++-
.../src/dashboard/util/extractUrlParams.test.ts | 7 +-
.../util/findFirstParentContainer.test.js | 5 +-
.../src/dashboard/util/findParentId.test.ts | 7 +-
.../util/findTabIndexByComponentId.test.ts | 7 +-
.../getChartAndLabelComponentIdFromPath.test.js | 3 +-
.../dashboard/util/getChartIdsFromLayout.test.ts | 5 +-
.../src/dashboard/util/getDashboardUrl.test.js | 15 ++-
.../util/getDetailedComponentWidth.test.js | 26 ++--
.../dashboard/util/getDirectPathToTabIndex.test.ts | 5 +-
.../src/dashboard/util/getDropPosition.test.js | 40 +++---
.../util/getEffectiveExtraFilters.test.js | 3 +-
.../util/getFilterConfigsFromFormdata.test.js | 9 +-
.../util/getFilterScopeFromNodesTree.test.js | 22 ++--
.../util/getFormDataWithExtraFilters.test.ts | 5 +-
.../util/getKeyForFilterScopeTree.test.ts | 1 +
.../util/getLeafComponentIdFromPath.test.js | 5 +-
.../src/dashboard/util/isDashboardEmpty.test.ts | 5 +-
.../src/dashboard/util/isDashboardLoading.test.ts | 9 +-
.../src/dashboard/util/isValidChild.test.ts | 7 +-
.../util/logging/childChartsDidLoad.test.ts | 1 +
.../src/dashboard/util/newComponentFactory.test.js | 5 +-
.../src/dashboard/util/newEntitiesFromDrop.test.js | 7 +-
.../src/dashboard/util/permissionUtils.test.ts | 27 ++--
.../dashboard/util/serializeFilterScopes.test.ts | 1 +
.../util/updateComponentParentsList.test.js | 10 +-
.../util/useFilterFocusHighlightStyles.test.tsx | 11 +-
superset-frontend/src/embedded/utils.test.ts | 6 +-
.../src/explore/actions/exploreActions.test.js | 9 +-
.../src/explore/actions/saveModalActions.test.ts | 1 +
.../components/ControlPanelsContainer.test.tsx | 1 +
.../DataTablesPane/test/DataTablesPane.test.tsx | 1 +
.../test/ResultsPaneOnDashboard.test.tsx | 1 +
.../DataTablesPane/test/SamplesPane.test.tsx | 1 +
.../DatasourcePanel/DatasourcePanel.test.tsx | 1 +
.../explore/components/EmbedCodeContent.test.jsx | 5 +-
.../ExploreChartHeader/ExploreChartHeader.test.tsx | 3 +
.../ExploreChartPanel/ExploreChartPanel.test.jsx | 3 +-
.../components/controls/CheckboxControl.test.tsx | 5 +-
.../ColorBreakpointOption.test.tsx | 1 +
.../ColorBreakpointPopoverControl.test.tsx | 1 +
.../ColorBreakpointPopoverTrigger.test.tsx | 1 +
.../ColorBreakpointsControl.test.tsx | 3 +-
.../controls/ColorPickerControl.test.tsx | 9 +-
.../DatasourceControl/DatasourceControl.test.jsx | 11 +-
.../DateFilterControl/tests/CalendarFrame.test.tsx | 13 +-
.../controls/DateFilterControl/tests/utils.test.ts | 20 +--
.../DndFilterSelect.test.tsx | 1 +
.../DndColumnSelectControl/Option.test.tsx | 1 +
.../FilterControl/AdhocFilter/AdhocFilter.test.js | 29 +++--
.../AdhocFilterControl/AdhocFilterControl.test.tsx | 7 +-
.../AdhocFilterEditPopover.test.jsx | 17 +--
...AdhocFilterEditPopoverSimpleTabContent.test.tsx | 38 +++---
.../controls/FilterControl/adhocFilterType.test.ts | 1 +
.../controls/MetricControl/AdhocMetric.test.js | 21 +--
.../MetricControl/AggregateOption.test.tsx | 3 +-
.../MetricControl/FilterDefinitionOption.test.jsx | 7 +-
.../components/controls/SelectControl.test.jsx | 74 ++++++-----
.../components/controls/TextAreaControl.test.jsx | 9 +-
.../components/controls/TimeOffsetControl.test.tsx | 5 +-
.../components/controls/ViewportControl.test.jsx | 7 +-
.../VizTypeControl/VizTypeControl.test.jsx | 5 +-
.../VizTypeControl/VizTypeControl.test.tsx | 21 +--
.../controls/ZoomConfigControl/zoomUtil.test.ts | 26 ++--
.../controls/withAsyncVerification.test.tsx | 5 +-
.../DashboardsSubMenu.test.tsx | 1 +
.../src/explore/controlPanels/Separator.test.ts | 39 +++---
.../src/explore/controlUtils/controlUtils.test.tsx | 38 +++---
.../controlUtils/standardizedFormData.test.ts | 3 +
.../src/explore/exploreUtils/exploreUtils.test.jsx | 45 ++++---
.../explore/exploreUtils/getChartDataUri.test.ts | 5 +-
superset-frontend/src/explore/store.test.jsx | 6 +-
.../alerts/components/NotificationMethod.test.tsx | 38 +++---
.../alerts/components/RecipientIcon.test.tsx | 11 +-
.../features/allEntities/AllEntitiesTable.test.tsx | 9 +-
.../src/features/dashboards/DashboardCard.test.tsx | 10 +-
.../DatabaseConnectionForm/EncryptedField.test.tsx | 42 +++---
.../OAuth2ClientField.test.tsx | 11 +-
.../databases/DatabaseModal/ExtraOptions.test.tsx | 17 +--
.../databases/DatabaseModal/index.test.tsx | 22 +++-
.../UploadDataModel/UploadDataModal.test.tsx | 18 ++-
.../AddDataset/DatasetPanel/DatasetPanel.test.tsx | 1 +
.../datasets/AddDataset/Footer/Footer.test.tsx | 1 +
.../datasets/AddDataset/Header/Header.test.tsx | 1 +
.../AddDataset/RightPanel/RightPanel.test.tsx | 3 +-
.../datasets/DatasetLayout/DatasetLayout.test.tsx | 13 +-
.../src/features/home/DashboardTable.test.tsx | 17 +--
.../src/features/home/EmptyState.test.tsx | 5 +-
.../HeaderReportDropdown/index.test.tsx | 17 +--
.../reports/ReportModal/ReportModal.test.tsx | 8 +-
.../features/rls/RowLevelSecurityModal.test.tsx | 13 +-
.../src/features/roles/RoleListAddModal.test.tsx | 11 +-
.../features/roles/RoleListDuplicateModal.test.tsx | 11 +-
.../src/features/roles/RoleListEditModal.test.tsx | 13 +-
.../src/features/tags/BulkTagModal.test.tsx | 1 +
.../src/features/themes/ThemeModal.test.tsx | 1 +
superset-frontend/src/features/themes/api.test.ts | 21 +--
.../src/features/themes/types.test.ts | 20 +--
.../components/Range/RangeFilterPlugin.test.tsx | 22 ++--
.../components/Select/SelectFilterPlugin.test.tsx | 1 +
.../filters/components/Select/buildQuery.test.ts | 15 ++-
superset-frontend/src/filters/utils.test.ts | 28 ++--
.../src/hooks/apiResources/apiResources.test.ts | 16 ++-
.../src/hooks/apiResources/dashboards.test.ts | 3 +-
.../src/hooks/apiResources/schemas.test.ts | 1 +
.../src/hooks/apiResources/tables.test.ts | 1 +
.../src/hooks/useDebounceValue.test.ts | 2 +-
.../src/hooks/useThemeMenuItems.test.tsx | 41 +++---
.../useUnsavedChangesPrompt.test.tsx | 9 +-
.../src/middleware/asyncEvent.test.ts | 17 ++-
superset-frontend/src/middleware/logger.test.js | 13 +-
.../pages/AlertReportList/AlertReportList.test.jsx | 21 +--
.../AnnotationLayerList.test.jsx | 19 +--
superset-frontend/src/pages/Chart/Chart.test.tsx | 2 +
.../pages/ChartList/ChartList.cardview.test.tsx | 33 ++---
.../pages/ChartList/ChartList.listview.test.tsx | 43 ++++---
.../pages/ChartList/ChartList.permissions.test.tsx | 49 +++----
.../src/pages/ChartList/ChartList.test.tsx | 42 +++---
.../pages/CssTemplateList/CssTemplateList.test.jsx | 17 +--
.../src/pages/DashboardList/DashboardList.test.jsx | 20 +--
.../pages/DatasetCreation/DatasetCreation.test.tsx | 3 +-
.../ExecutionLogList/ExecutionLogList.test.tsx | 7 +-
.../src/pages/GroupsList/GroupsList.test.tsx | 17 +--
.../src/pages/RolesList/RolesList.test.tsx | 17 +--
.../RowLevelSecurityList.test.tsx | 21 +--
.../pages/SavedQueryList/SavedQueryList.test.tsx | 17 +--
.../src/pages/ThemeList/ThemeList.test.tsx | 19 +--
.../src/pages/ThemeList/index.test.tsx | 13 +-
.../src/pages/UserInfo/UserInfo.test.tsx | 9 +-
.../UserRegistrations/UserRegistrations.test.tsx | 3 +-
.../src/pages/UsersList/UsersList.test.tsx | 15 ++-
.../src/theme/tests/ThemeController.test.ts | 103 ++++++++-------
.../src/theme/tests/ThemeProvider.test.tsx | 22 ++--
.../src/utils/DebouncedMessageQueue.test.ts | 9 +-
superset-frontend/src/utils/cacheWrapper.test.ts | 13 +-
superset-frontend/src/utils/chartRegistry.test.ts | 12 +-
superset-frontend/src/utils/common.test.jsx | 18 ++-
.../src/utils/datasourceUtils.test.ts | 1 +
.../src/utils/getBootstrapData.test.ts | 13 +-
.../getChartFormDiffs/getChartFormDiffs.test.ts | 19 +--
.../src/utils/getControlsForVizType.test.js | 3 +-
.../src/utils/getControlsForVizType.test.ts | 3 +-
.../src/utils/hostNamesConfig.test.ts | 1 +
.../src/utils/localStorageHelpers.test.ts | 5 +-
superset-frontend/src/utils/parseCookie.test.ts | 7 +-
superset-frontend/src/utils/safeStringify.test.ts | 13 +-
superset-frontend/src/utils/testUtils.test.ts | 17 +--
superset-frontend/src/utils/urlUtils.test.ts | 69 +++++-----
superset-frontend/src/views/CRUD/hooks.test.tsx | 16 ++-
superset-frontend/src/views/routes.test.tsx | 5 +-
.../src/views/theme.bootstrap.test.ts | 19 ++-
.../components/LeftCell/LeftCell.test.tsx | 1 +
.../components/Sparkline/Sparkline.test.tsx | 1 +
.../components/ValueCell/ValueCell.test.tsx | 1 +
.../config/controlPanel/controlPanel.test.ts | 1 +
.../config/transformProps/transformProps.test.ts | 1 +
.../TimeTable/utils/colorUtils/colorUtils.test.ts | 1 +
.../utils/rowProcessing/rowProcessing.test.ts | 1 +
.../TimeTable/utils/sortUtils/sortUtils.test.ts | 1 +
.../sparklineDataUtils/sparklineDataUtils.test.ts | 1 +
.../sparklineHelpers/sparklineHelpers.test.ts | 6 +
.../valueCalculations/valueCalculations.test.ts | 5 +
262 files changed, 2005 insertions(+), 1536 deletions(-)
rename LLMS.md => AGENTS.md (98%)
create mode 100644 superset-frontend/src/.eslintrc.json