Skip to content

Commit 8581172

Browse files
ijjkTimer
authored andcommitted
Allowing skipping local selenium server when not needed (vercel#10312)
* Disable local selenium server when not needed * Disable skipping for firefox as it appears to be needed still
1 parent 6a88ec1 commit 8581172

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
env:
8181
NEXT_TELEMETRY_DISABLED: 1
8282
BROWSERSTACK: true
83+
SKIP_LOCAL_SELENIUM_SERVER: true
8384
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
8485
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
8586
steps:

test/jest-environment.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ const getPort = require('get-port')
44
const seleniumServer = require('selenium-standalone')
55
const NodeEnvironment = require('jest-environment-node')
66

7-
const { BROWSER_NAME: browserName = 'chrome' } = process.env
7+
const {
8+
BROWSER_NAME: browserName = 'chrome',
9+
SKIP_LOCAL_SELENIUM_SERVER,
10+
} = process.env
811

912
const newTabPg = `
1013
<!DOCTYPE html>
@@ -38,7 +41,7 @@ class CustomEnvironment extends NodeEnvironment {
3841

3942
let seleniumServerPort
4043

41-
if (browserName !== 'chrome') {
44+
if (browserName !== 'chrome' && SKIP_LOCAL_SELENIUM_SERVER !== 'true') {
4245
console.log('Installing selenium server')
4346
await new Promise((resolve, reject) => {
4447
seleniumServer.install(err => {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy