mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix: most Recently Selected Table Should Appear at the Top of the List on the Left Panel (#19258)
This commit is contained in:
@@ -725,7 +725,7 @@ describe('async actions', () => {
|
||||
|
||||
describe('addTable', () => {
|
||||
it('updates the table schema state in the backend', () => {
|
||||
expect.assertions(5);
|
||||
expect.assertions(6);
|
||||
|
||||
const database = { disable_data_preview: true };
|
||||
const tableName = 'table';
|
||||
@@ -743,6 +743,7 @@ describe('async actions', () => {
|
||||
expect(store.getActions().map(a => a.type)).toEqual(
|
||||
expectedActionTypes,
|
||||
);
|
||||
expect(store.getActions()[0].prepend).toBeTruthy();
|
||||
expect(fetchMock.calls(updateTableSchemaEndpoint)).toHaveLength(1);
|
||||
expect(fetchMock.calls(getTableMetadataEndpoint)).toHaveLength(1);
|
||||
expect(fetchMock.calls(getExtraTableMetadataEndpoint)).toHaveLength(
|
||||
|
||||
Reference in New Issue
Block a user