mirror of
https://github.com/apache/superset.git
synced 2024-09-06 05:47:43 -04:00
fix(cypress): table viz failed to run in postgres12 (#11230)
This commit is contained in:
parent
fa9963519e
commit
16d36a776c
@ -87,25 +87,13 @@ export const MAX_DS = {
|
||||
};
|
||||
|
||||
export const MAX_STATE = {
|
||||
expressionType: 'SIMPLE',
|
||||
column: {
|
||||
id: 337,
|
||||
column_name: 'state',
|
||||
verbose_name: null,
|
||||
description: null,
|
||||
expression: null,
|
||||
filterable: true,
|
||||
groupby: true,
|
||||
is_dttm: false,
|
||||
type: 'VARCHAR(10)',
|
||||
python_date_format: null,
|
||||
optionName: '_col_state',
|
||||
},
|
||||
aggregate: 'MAX',
|
||||
sqlExpression: null,
|
||||
expressionType: 'SQL',
|
||||
sqlExpression: 'MAX(UPPER(state))',
|
||||
column: null,
|
||||
aggregate: null,
|
||||
isNew: false,
|
||||
hasCustomLabel: false,
|
||||
label: 'MAX(state)',
|
||||
label: 'MAX(UPPER(state))',
|
||||
optionName: 'metric_kvval50pvbo_hewj3pzacb',
|
||||
};
|
||||
|
||||
|
@ -66,7 +66,7 @@ describe('Visualization > Table', () => {
|
||||
cy.get('.chart-container td:nth-child(1)').contains('2008 Q1');
|
||||
// other column with timestamp use raw timestamp
|
||||
cy.get('.chart-container td:nth-child(3)').contains('2008-01-01T00:00:00');
|
||||
cy.get('.chart-container td:nth-child(4)').contains('other');
|
||||
cy.get('.chart-container td:nth-child(4)').contains('TX');
|
||||
});
|
||||
|
||||
it('Format with table_timestamp_format', () => {
|
||||
@ -87,7 +87,7 @@ describe('Visualization > Table', () => {
|
||||
// time column should not use time granularity when timestamp format is set
|
||||
cy.get('.chart-container td').contains('2008 Q1').should('not.exist');
|
||||
// other num numeric metric column should stay as string
|
||||
cy.get('.chart-container td').contains('other');
|
||||
cy.get('.chart-container td').contains('TX');
|
||||
});
|
||||
|
||||
it('Test table with groupby', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user