@@ -49,10 +49,10 @@ describe("Mapping", () => {
4949 cy . waitForAsyncRequest ( ) ;
5050 } ) ;
5151 it ( "Define new entity, add relationship property" , { defaultCommandTimeout : 120000 } , ( ) => {
52- cy . waitUntil ( ( ) => toolbar . getModelToolbarIcon ( ) ) . click ( ) ;
52+ toolbar . getModelToolbarIcon ( ) . should ( "be.visible" ) . click ( ) ;
5353 modelPage . selectView ( "table" ) ;
5454 entityTypeTable . waitForTableToLoad ( ) ;
55- cy . waitUntil ( ( ) => modelPage . getAddButton ( ) ) . click ( { force : true } ) ;
55+ modelPage . getAddButton ( ) . should ( "be.visible" ) . click ( { force : true } ) ;
5656 modelPage . getAddEntityTypeOption ( ) . should ( "be.visible" ) . click ( { force : true } ) ;
5757 entityTypeModal . newEntityName ( "Relation" ) ;
5858 entityTypeModal . getAddButton ( ) . click ( ) ;
@@ -89,18 +89,18 @@ describe("Mapping", () => {
8989 cy . contains ( "This functionality is not implemented yet." ) . should ( "not.exist" ) ;
9090 } ) ;
9191 it ( "Create new mapping in Curate" , { defaultCommandTimeout : 120000 } , ( ) => {
92- cy . waitUntil ( ( ) => toolbar . getCurateToolbarIcon ( ) ) . click ( ) ;
93- cy . waitUntil ( ( ) => curatePage . getEntityTypePanel ( "Person" ) ) . should ( "be.visible" ) ;
92+ toolbar . getCurateToolbarIcon ( ) . should ( "be.visible" ) . click ( ) ;
93+ curatePage . getEntityTypePanel ( "Person" ) . should ( "be.visible" ) ;
9494 curatePage . getEntityTypePanel ( "Person" ) . should ( "exist" ) ;
9595 curatePage . toggleEntityTypeId ( "Person" ) ;
96- cy . waitUntil ( ( ) => curatePage . addNewStep ( "Person" ) ) . click ( ) ;
96+ curatePage . addNewStep ( "Person" ) . should ( "be.visible" ) . click ( ) ;
9797 createEditMappingDialog . setMappingName ( "mapRelation" ) ;
9898 createEditMappingDialog . setSourceRadio ( "Query" ) ;
9999 createEditMappingDialog . setQueryInput ( `cts.collectionQuery(['loadPersonJSON'])` ) ;
100100 createEditMappingDialog . saveButton ( ) . click ( { force : true } ) ;
101101 curatePage . verifyStepDetailsOpen ( "mapRelation" ) ;
102102 browsePage . waitForSpinnerToDisappear ( ) ;
103- cy . waitUntil ( ( ) => mappingStepDetail . dataAvailable ( ) ) . should ( "be.visible" ) ;
103+ mappingStepDetail . dataAvailable ( ) . should ( "be.visible" ) ;
104104 mappingStepDetail . entityTitle ( "Person" ) . should ( "exist" ) ;
105105 } ) ;
106106 it ( "Verify related entities in mapping details with defaults" , { defaultCommandTimeout : 120000 } , ( ) => {
@@ -135,7 +135,7 @@ describe("Mapping", () => {
135135 mappingStepDetail . successMessage ( ) . should ( "exist" ) ;
136136 mappingStepDetail . successMessage ( ) . should ( "not.exist" ) ;
137137 cy . log ( "**Test expresssions**" ) ;
138- cy . waitUntil ( ( ) => mappingStepDetail . testMap ( ) ) . should ( "be.enabled" ) ;
138+ mappingStepDetail . testMap ( ) . should ( "be.enabled" ) ;
139139 mappingStepDetail . testMap ( ) . click ( { force : true } ) ;
140140 cy . waitForAsyncRequest ( ) ;
141141 mappingStepDetail . validateMapValue ( "Person" , "id" , "444-44-4440" ) ;
@@ -225,7 +225,7 @@ describe("Mapping", () => {
225225 } ) ;
226226
227227 it ( "Create new flow, add mapping to flow, run mapping, verify results" , ( ) => {
228- cy . waitUntil ( ( ) => toolbar . getRunToolbarIcon ( ) ) . click ( ) ;
228+ toolbar . getRunToolbarIcon ( ) . should ( "be.visible" ) . click ( ) ;
229229 runPage . createFlowButton ( ) . click ( ) ;
230230 runPage . newFlowModal ( ) . should ( "be.visible" ) ;
231231 runPage . setFlowName ( "relationFlow" ) ;
@@ -275,17 +275,17 @@ describe("Mapping", () => {
275275 mappingStepDetail . getValidationError ( "Person" ) . should ( "exist" ) ;
276276 mappingStepDetail . editTargetPermissions ( "Person" , "data-hub-common,read,data-hub-common,update" ) ;
277277 mappingStepDetail . getValidationError ( "Person" ) . should ( "not.have.text" ) ;
278- cy . waitUntil ( ( ) => mappingStepDetail . getSaveSettings ( "Person" ) ) . click ( { force : true } ) ;
278+ mappingStepDetail . getSaveSettings ( "Person" ) . should ( "be.visible" ) . click ( { force : true } ) ;
279279
280280 mappingStepDetail . getEntitySettings ( "Relation" ) . scrollIntoView ( ) . click ( ) ;
281281 mappingStepDetail . editTargetPermissions ( "Relation" , "data-hub-common,read,data-hub-common" ) ;
282- cy . waitUntil ( ( ) => mappingStepDetail . getSaveSettings ( "Relation" ) ) . click ( { force : true } ) ;
282+ mappingStepDetail . getSaveSettings ( "Relation" ) . should ( "be.visible" ) . click ( { force : true } ) ;
283283 mappingStepDetail . getValidationError ( "Relation" ) . should ( "exist" ) ;
284284 mappingStepDetail . editTargetPermissions ( "Relation" , "data-hub-common,read" ) ;
285- cy . waitUntil ( ( ) => mappingStepDetail . getSaveSettings ( "Relation" ) ) . click ( { force : true } ) ;
285+ mappingStepDetail . getSaveSettings ( "Relation" ) . should ( "be.visible" ) . click ( { force : true } ) ;
286286 mappingStepDetail . getValidationError ( "Relation" ) . should ( "not.have.text" ) ;
287287 mappingStepDetail . editTargetPermissions ( "Relation" , "data-hub-common,read,data-hub-common,update" ) ;
288- cy . waitUntil ( ( ) => mappingStepDetail . getSaveSettings ( "Relation" ) ) . click ( { force : true } ) ;
288+ mappingStepDetail . getSaveSettings ( "Relation" ) . should ( "be.visible" ) . click ( { force : true } ) ;
289289 browsePage . waitForSpinnerToDisappear ( ) ;
290290 } ) ;
291291 it ( "Delete related entity from mapping via filter" , ( ) => {
@@ -303,7 +303,7 @@ describe("Mapping", () => {
303303 curatePage . openMappingStepDetail ( "Person" , "mapRelation" ) ;
304304 curatePage . verifyStepDetailsOpen ( "mapRelation" ) ;
305305 browsePage . waitForSpinnerToDisappear ( ) ;
306- cy . waitUntil ( ( ) => mappingStepDetail . relatedFilterSelection ( "Person" , "Relation (relatedTo Person)" ) ) . should ( "exist" ) ;
306+ mappingStepDetail . relatedFilterSelection ( "Person" , "Relation (relatedTo Person)" ) . should ( "exist" ) ;
307307
308308 // Related entity exists before deletion
309309 cy . log ( "**Validate related entity exists before deletion**" ) ;
@@ -329,7 +329,7 @@ describe("Mapping", () => {
329329 } ) ;
330330 it ( "Reopen step and verify the deleted related entity is no longer there" , ( ) => {
331331 mappingStepDetail . goBackToCurateHomePage ( ) ;
332- cy . waitUntil ( ( ) => curatePage . getEntityTypePanel ( "Person" ) ) . should ( "be.visible" ) ;
332+ curatePage . getEntityTypePanel ( "Person" ) . should ( "be.visible" ) ;
333333 //curatePage.toggleEntityTypeId("Person");
334334 curatePage . openMappingStepDetail ( "Person" , "mapRelation" ) ;
335335 curatePage . verifyStepDetailsOpen ( "mapRelation" ) ;
0 commit comments