Skip to content

Commit bb70183

Browse files
ziadozMizouziE
andauthored
Disable smooth scrolling in TestCase (#1167)
* disable smooth scrolling https: //peter.sh/experiments/chromium-command-line-switches/#disable-smooth-scrolling Co-Authored-By: Sam <[email protected]> * tests --------- Co-authored-by: Sam <[email protected]>
1 parent 3d662b8 commit bb70183

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stubs/DuskTestCase.stub

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ abstract class DuskTestCase extends BaseTestCase
3232
$options = (new ChromeOptions)->addArguments(collect([
3333
$this->shouldStartMaximized() ? '--start-maximized' : '--window-size=1920,1080',
3434
'--disable-search-engine-choice-screen',
35+
'--disable-smooth-scrolling',
3536
])->unless($this->hasHeadlessDisabled(), function (Collection $items) {
3637
return $items->merge([
3738
'--disable-gpu',

tests/Browser/DuskTestCase.php

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ protected function driver(): RemoteWebDriver
5858
$options = (new ChromeOptions)->addArguments(collect([
5959
$this->shouldStartMaximized() ? '--start-maximized' : '--window-size=1920,1080',
6060
'--disable-search-engine-choice-screen',
61+
'--disable-smooth-scrolling',
6162
])->unless($this->hasHeadlessDisabled(), function (Collection $items) {
6263
return $items->merge([
6364
'--disable-gpu',

0 commit comments

Comments
 (0)