diff --git a/input_test.go b/input_test.go index dc6ca7b..b9bbf3a 100644 --- a/input_test.go +++ b/input_test.go @@ -79,13 +79,14 @@ func TestMouseClickNode(t *testing.T) { {"button2", "foo", ButtonType(input.ButtonNone), ByID}, {"button2", "bar", ButtonType(input.ButtonLeft), ByID}, {"button2", "bar-middle", ButtonType(input.ButtonMiddle), ByID}, + {"input3", "foo", ButtonModifiers(input.ModifierNone), ByID}, {"input3", "bar-right", ButtonType(input.ButtonRight), ByID}, - {"input3", "bar-right", ButtonModifiers(input.ModifierNone), ByID}, {"input3", "bar-right", Button("right"), ByID}, } for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "input.html") @@ -130,6 +131,7 @@ func TestMouseClickOffscreenNode(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "input.html") @@ -188,6 +190,7 @@ func TestKeyAction(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "input.html") @@ -237,6 +240,7 @@ func TestKeyActionNode(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "input.html") diff --git a/query_test.go b/query_test.go index bad525c..b379d57 100644 --- a/query_test.go +++ b/query_test.go @@ -210,6 +210,7 @@ func TestClear(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "form.html") @@ -254,6 +255,7 @@ func TestReset(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "form.html") @@ -322,6 +324,7 @@ func TestSetValue(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "form.html") @@ -496,6 +499,7 @@ func TestSetAttributes(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "image.html") @@ -570,6 +574,7 @@ func TestSetAttributeValue(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "form.html") @@ -613,6 +618,7 @@ func TestRemoveAttribute(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "image.html") @@ -651,6 +657,7 @@ func TestClick(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "form.html") @@ -691,6 +698,7 @@ func TestDoubleClick(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "js.html") @@ -732,6 +740,7 @@ func TestSendKeys(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "visible.html") @@ -816,6 +825,7 @@ func TestSubmit(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "form.html") @@ -856,6 +866,7 @@ func TestComputedStyle(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "js.html") @@ -908,6 +919,7 @@ func TestMatchedStyle(t *testing.T) { for i, test := range tests { t.Run(fmt.Sprintf("test %d", i), func(t *testing.T) { + test := test t.Parallel() ctx, cancel := testAllocate(t, "js.html")