@@ -60,7 +60,7 @@ describe('Data Modeling tab', function () {
60
60
await screenshotIfFailed ( compass , this . currentTest ) ;
61
61
} ) ;
62
62
63
- it ( 'creates a new data model using an existing connection' , async function ( ) {
63
+ it . only ( 'creates a new data model using an existing connection' , async function ( ) {
64
64
await browser . navigateToDataModeling ( ) ;
65
65
66
66
// Click on create new data model button
@@ -96,12 +96,14 @@ describe('Data Modeling tab', function () {
96
96
const dataModelEditor = browser . $ ( Selectors . DataModelEditor ) ;
97
97
await dataModelEditor . waitForDisplayed ( ) ;
98
98
99
- let nodes = await getDiagramNodes ( browser ) ;
100
- expect ( nodes ) . to . have . lengthOf ( 2 ) ;
101
- expect ( nodes ) . to . deep . equal ( [
102
- 'test.testCollection1' ,
103
- 'test.testCollection2' ,
104
- ] ) ;
99
+ browser . waitUntil ( async ( ) => {
100
+ let nodes = await getDiagramNodes ( browser ) ;
101
+ expect ( nodes ) . to . have . lengthOf ( 2 ) ;
102
+ expect ( nodes ) . to . deep . equal ( [
103
+ 'test.testCollection1' ,
104
+ 'test.testCollection2' ,
105
+ ] ) ;
106
+ } ) ;
105
107
106
108
// Apply change to the model
107
109
const newModel = {
0 commit comments