mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
fix: Show sqllab state when deleting databases (#17331)
* saving * fix ts * update test * update test * log unit * updated test
This commit is contained in:
@@ -88,6 +88,10 @@ fetchMock.get(databaseRelatedEndpoint, {
|
||||
count: 0,
|
||||
result: [],
|
||||
},
|
||||
sqllab_tab_states: {
|
||||
count: 0,
|
||||
result: [],
|
||||
},
|
||||
});
|
||||
|
||||
describe('DatabaseList', () => {
|
||||
@@ -131,7 +135,7 @@ describe('DatabaseList', () => {
|
||||
await waitForComponentToPaint(wrapper);
|
||||
|
||||
expect(wrapper.find(DeleteModal).props().description).toMatchInlineSnapshot(
|
||||
`"The database db 0 is linked to 0 charts that appear on 0 dashboards. Are you sure you want to continue? Deleting the database will break those objects."`,
|
||||
`"The database db 0 is linked to 0 charts that appear on 0 dashboards and users have 0 SQL Lab tabs using this database open. Are you sure you want to continue? Deleting the database will break those objects."`,
|
||||
);
|
||||
|
||||
act(() => {
|
||||
|
||||
Reference in New Issue
Block a user