Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ function ColumnCollectionTable({
control={
<Select
ariaLabel={t('Data type')}
header={<FormLabel>{t('Data type')}</FormLabel>}
options={DATA_TYPES}
name="type"
allowNewOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,27 @@ test('can add new columns', async () => {
});
});

test('renders Data type label in calculated columns tab', async () => {
const testProps = createProps();
await asyncRender({
...testProps,
datasource: { ...testProps.datasource, table_name: 'Vehicle Sales +' },
});

const calcColsTab = screen.getByTestId('collection-tab-Calculated columns');
await userEvent.click(calcColsTab);

const calcColsPanel = within(
await screen.findByRole('tabpanel', { name: /calculated columns/i }),
);

const addBtn = calcColsPanel.getByRole('button', { name: /add item/i });
await userEvent.click(addBtn);

const dataTypeLabels = await calcColsPanel.findAllByText('Data type');
expect(dataTypeLabels.length).toBeGreaterThanOrEqual(2);
});

test('renders isSqla fields', async () => {
const testProps = createProps();
await asyncRender({
Expand Down
14 changes: 7 additions & 7 deletions superset-websocket/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion superset-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"eslint-plugin-lodash": "^8.0.0",
"globals": "^17.0.0",
"jest": "^29.7.0",
"prettier": "^3.8.0",
"prettier": "^3.8.1",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2",
"tscw-config": "^1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ class D3TimeFormat(TypedDict, total=False):
"colorInfo": "#66bcfe",
# Fonts
"fontUrls": [],
"fontFamily": "Inter, Helvetica, Arial",
"fontFamily": "Inter, Helvetica, Arial, sans-serif",
"fontFamilyCode": "'Fira Code', 'Courier New', monospace",
# Extra tokens
"transitionTiming": 0.3,
Expand Down
Loading