Skip to content

Commit b56b67c

Browse files
committed
fixup! revert me: debug with ssh
1 parent b83d936 commit b56b67c

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/jquery-mousewheel.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Install dependencies
3636
run: npm install
3737

38-
- name: Run jQuery Mousewheel tests
39-
working-directory: test/jquery-mousewheel
40-
run: npm it
38+
- name: Debug with SSH
39+
uses: mxschmitt/action-tmate@v3
40+
41+
# - name: Run jQuery Mousewheel tests
42+
# working-directory: test/jquery-mousewheel
43+
# run: npm it

selenium/createDriver.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ import { browserSupportsHeadless } from "../lib/getBrowserString.js";
88
// Set script timeout to 10min
99
const DRIVER_SCRIPT_TIMEOUT = 1000 * 60 * 10;
1010

11-
export default async function createDriver( { browserName, headless, url, verbose } ) {
11+
export default async function createDriver( {
12+
browserName,
13+
headless,
14+
url,
15+
verbose
16+
} ) {
1217
const capabilities = Capabilities[ browserName ]();
1318

1419
// Support: IE 11+
@@ -23,7 +28,6 @@ export default async function createDriver( { browserName, headless, url, verbos
2328

2429
const chromeOptions = new Chrome.Options();
2530
chromeOptions.addArguments( "--enable-chrome-browser-cloud-management" );
26-
chromeOptions.addArguments( "--no-sandbox" );
2731

2832
// Alter the chrome binary path if
2933
// the CHROME_BIN environment variable is set
@@ -58,7 +62,9 @@ export default async function createDriver( { browserName, headless, url, verbos
5862

5963
const ieOptions = new IE.Options();
6064
ieOptions.setEdgeChromium( true );
61-
ieOptions.setEdgePath( "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" );
65+
ieOptions.setEdgePath(
66+
"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
67+
);
6268

6369
if ( headless ) {
6470
chromeOptions.addArguments( "--headless=new" );
@@ -72,7 +78,8 @@ export default async function createDriver( { browserName, headless, url, verbos
7278
}
7379
}
7480

75-
const driver = new Builder().withCapabilities( capabilities )
81+
const driver = new Builder()
82+
.withCapabilities( capabilities )
7683
.setChromeOptions( chromeOptions )
7784
.setFirefoxOptions( firefoxOptions )
7885
.setEdgeOptions( edgeOptions )

0 commit comments

Comments
 (0)