You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2022/02/10 02:02:31 UTC
[superset] 01/02: added test
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch xp/db-modal-anywhere
in repository https://gitbox.apache.org/repos/asf/superset.git
commit d00a408feb359177a4989376a2f410c92a77fac7
Author: hughhhh <hu...@gmail.com>
AuthorDate: Wed Feb 9 17:59:27 2022 -0800
added test
---
.../CRUD/data/database/DatabaseModal/index.test.jsx | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.test.jsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.test.jsx
index 088fd79..5e895d3 100644
--- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.test.jsx
+++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.test.jsx
@@ -1016,4 +1016,24 @@ describe('DatabaseModal', () => {
});
});
});
+ describe('DatabaseModal w/ Deeplinking Engine', () => {
+ const renderAndWait = async () => {
+ const mounted = act(async () => {
+ render(<DatabaseModal {...dbProps} setDBEngine={'PostgreSQL'} />, {
+ useRedux: true,
+ });
+ });
+
+ return mounted;
+ };
+
+ beforeEach(async () => {
+ await renderAndWait();
+ });
+
+ it('enters step 2 of 3 when proper database is selected', () => {
+ const step2of3text = screen.getByText(/step 2 of 3/i);
+ expect(step2of3text).toBeVisible();
+ });
+ });
});