diff --git a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/shared.helper.js b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/shared.helper.js index 4d4eafdb31..f2a09686e7 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/shared.helper.js +++ b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/shared.helper.js @@ -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', }; diff --git a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/table.test.ts b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/table.test.ts index 77f9c6f121..a1daa9e0ce 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/table.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/table.test.ts @@ -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', () => {