-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Data Modeling
-
None
-
3
-
Iteration A (Apr 21 - May 5), Iteration B (May 5 - May 16)
-
Not Needed
-
Developer Tools
We add a new data-modeling-tab.test.ts test file to the compass-e2e-tests tests. In this file we add a test that:
- Creates a new data model using an existing connection
- Selects a database and collection
- Checks that the diagram is shown and uses the data from the collection
- Performs an edit on the diagram using the text editor
- Clicks to undo and redo the edit, verifying the state is as expected at both stages
- Opens a new tab
- Loads the saved data model and checks that the applied edit is there
- Opens a new tab
- Deletes the data model and checks that it is no longer shown
Depending on the outcome of the discussion in Scope: Compass integration ground work for Data Modeling on whether or not we show the in-memory diagrams on the web we may need to update this E2E test for web. For now as we have it in memory so we shouldn't need to account for web, so that will end up being a follow-up.
We set & unset the `enableDataModeling` feature flag for this test to work.