This is an automated email from the ASF dual-hosted git repository. hugh pushed a commit to branch hugh/sqlalchemy-docs-2 in repository https://gitbox.apache.org/repos/asf/superset.git
commit ec39fc0c3c74d113a7d390256dde96fe1af6fb90 Author: hughhhh <[email protected]> AuthorDate: Wed Feb 17 12:47:19 2021 -0500 split test --- .../views/CRUD/data/database/DatabaseList_spec.jsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseList_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseList_spec.jsx index 96639df..607f65e 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseList_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/data/database/DatabaseList_spec.jsx @@ -109,11 +109,22 @@ describe('DatabaseList', () => { it('fetches Databases', () => { const callsD = fetchMock.calls(/database\/\?q/); - expect(callsD).toHaveLength(1); + expect(callsD).toHaveLength(2); expect(callsD[0][0]).toMatchInlineSnapshot( `"http://localhost/api/v1/database/?q=(order_column:changed_on_delta_humanized,order_direction:desc,page:0,page_size:25)"`, ); }); +}); + +describe('DatabaseList async', () => { + const wrapper = mount( + <Provider store={store}> + <DatabaseList user={mockUser} /> + </Provider>, + ); + beforeAll(async () => { + await waitForComponentToPaint(wrapper); + }); it('deletes', async () => { act(() => {
