@@ -35,7 +35,7 @@ test("test creation tools", async ({ page, browserName }) => {
3535
3636 async function placeNode ( index : number , type : string ) {
3737 await clickToolPalette ( index ) ;
38- await page . click ( "#sprotty_root" , { position : { x : 100 , y : 100 + index * 100 } , force : true } ) ;
38+ await page . click ( "#sprotty_root" , { position : { x : 200 , y : 100 + index * 100 } , force : true } ) ;
3939 const selector = `.sprotty-node.${ type } ` ;
4040 await waitForElement ( page , selector ) ;
4141 const newNode = page . locator ( selector ) ;
@@ -45,6 +45,9 @@ test("test creation tools", async ({ page, browserName }) => {
4545
4646 async function placePort ( index : number , node : string ) {
4747 await clickToolPalette ( index ) ;
48+ // we hover and then move to avoid clicking the annotation ui
49+ await page . hover ( node , { position : { x : 50 , y : 10 } } ) ;
50+ await page . waitForTimeout ( 750 ) ;
4851 await page . click ( node , { position : { x : 10 , y : 10 } , force : true } ) ;
4952 const selector = `${ node } > .sprotty-port` ;
5053 await waitForElement ( page , selector ) ;
0 commit comments