@ -485,7 +485,7 @@ describe("regression tests", () => {
}
Keyboard . withModifierKeys ( { ctrl : true } , ( ) = > {
Keyboard . codePress( CODE S. G ) ;
Keyboard . keyPress( KEY S. G ) ;
} ) ;
for ( const element of h . elements ) {
@ -524,7 +524,7 @@ describe("regression tests", () => {
Keyboard . withModifierKeys ( { ctrl : true } , ( ) = > {
Keyboard . keyPress ( KEYS . A ) ;
Keyboard . codePress( CODE S. G ) ;
Keyboard . keyPress( KEY S. G ) ;
} ) ;
expect ( API . getSelectedElements ( ) . length ) . toBe ( 3 ) ;
@ -561,7 +561,7 @@ describe("regression tests", () => {
mouse . click ( ) ;
} ) ;
Keyboard . withModifierKeys ( { ctrl : true } , ( ) = > {
Keyboard . codePress( CODE S. G ) ;
Keyboard . keyPress( KEY S. G ) ;
} ) ;
expect ( h . elements . map ( ( element ) = > element . id ) ) . toEqual ( [
@ -578,7 +578,7 @@ describe("regression tests", () => {
Keyboard . withModifierKeys ( { ctrl : true } , ( ) = > {
Keyboard . keyPress ( KEYS . A ) ;
Keyboard . codePress( CODE S. G ) ;
Keyboard . keyPress( KEY S. G ) ;
} ) ;
mouse . doubleClickOn ( rectC ) ;
@ -586,7 +586,7 @@ describe("regression tests", () => {
mouse . clickOn ( rectA ) ;
} ) ;
Keyboard . withModifierKeys ( { ctrl : true } , ( ) = > {
Keyboard . codePress( CODE S. G ) ;
Keyboard . keyPress( KEY S. G ) ;
} ) ;
expect ( rectC . groupIds . length ) . toBe ( 2 ) ;
@ -996,7 +996,7 @@ describe("regression tests", () => {
Keyboard . withModifierKeys ( { ctrl : true } , ( ) = > {
Keyboard . keyPress ( KEYS . A ) ;
Keyboard . codePress( CODE S. G ) ;
Keyboard . keyPress( KEY S. G ) ;
} ) ;
const selectedGroupIds_prev = h . state . selectedGroupIds ;
@ -1110,7 +1110,7 @@ it(
// Create group with first and third rectangle
Keyboard . withModifierKeys ( { ctrl : true } , ( ) = > {
Keyboard . codePress( CODE S. G ) ;
Keyboard . keyPress( KEY S. G ) ;
} ) ;
expect ( API . getSelectedElements ( ) . length ) . toBe ( 2 ) ;