@@ -42,6 +42,7 @@ describe("Mapping", () => {
4242 cy . loginAsDeveloper ( ) . withRequest ( ) ;
4343 cy . deleteSteps ( "mapping" , "mapRelation" ) ;
4444 cy . deleteEntities ( "Relation" ) ;
45+ cy . deleteEntities ( "TestEntity" ) ;
4546 cy . deleteFlows ( "relationFlow" ) ;
4647 cy . deleteRecordsInFinal ( "mapRelation" ) ;
4748 cy . resetTestUser ( ) ;
@@ -69,6 +70,24 @@ describe("Mapping", () => {
6970 cy . publishDataModel ( ) ;
7071 propertyTable . getForeignIcon ( "relatedTo" ) . should ( "exist" ) ;
7172 } ) ;
73+ it ( "Create new entity and check if there is no message in curate tile" , { defaultCommandTimeout : 120000 } , ( ) => {
74+ cy . waitUntil ( ( ) => toolbar . getModelToolbarIcon ( ) ) . click ( ) ;
75+ modelPage . selectView ( "table" ) ;
76+ entityTypeTable . waitForTableToLoad ( ) ;
77+ cy . waitUntil ( ( ) => modelPage . getAddButton ( ) ) . click ( { force : true } ) ;
78+ modelPage . getAddEntityTypeOption ( ) . should ( "be.visible" ) . click ( { force : true } ) ;
79+ entityTypeModal . newEntityName ( "TestEntity" ) ;
80+ entityTypeModal . getAddButton ( ) . click ( ) ;
81+ cy . waitForAsyncRequest ( ) ;
82+ cy . wait ( 1000 ) ;
83+ //Save Changes
84+ cy . publishDataModel ( ) ;
85+ cy . waitUntil ( ( ) => toolbar . getCurateToolbarIcon ( ) ) . click ( ) ;
86+ cy . waitUntil ( ( ) => curatePage . getEntityTypePanel ( "TestEntity" ) ) . should ( "be.visible" ) ;
87+ curatePage . getEntityTypePanel ( "TestEntity" ) . should ( "exist" ) ;
88+ curatePage . toggleEntityTypeId ( "TestEntity" ) ;
89+ cy . contains ( "This functionality is not implemented yet." ) . should ( "not.exist" ) ;
90+ } ) ;
7291 it ( "Create new mapping in Curate" , { defaultCommandTimeout : 120000 } , ( ) => {
7392 cy . waitUntil ( ( ) => toolbar . getCurateToolbarIcon ( ) ) . click ( ) ;
7493 cy . waitUntil ( ( ) => curatePage . getEntityTypePanel ( "Person" ) ) . should ( "be.visible" ) ;
0 commit comments