Skip to content

Commit

Permalink
update to use test channel
Browse files Browse the repository at this point in the history
  • Loading branch information
mschile committed Dec 11, 2024
1 parent eff8345 commit 2abfca4
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .circleci/cache-version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Bump this version to force CI to re-create the cache from scratch.

11-5-24
11-11-24
3 changes: 2 additions & 1 deletion packages/frontend-shared/src/assets/browserLogos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import edgeIcon from 'browser-logos/src/edge/edge.svg?url'
import electronIcon from 'browser-logos/src/electron/electron.svg?url'
import canaryIcon from 'browser-logos/src/chrome-canary/chrome-canary.svg?url'
import chromeBetaIcon from 'browser-logos/src/chrome-beta/chrome-beta.svg?url'
import chromeTestIcon from 'browser-logos/src/chrome-test/chrome-test.svg?url'
import chromiumIcon from 'browser-logos/src/chromium/chromium.svg?url'
import edgeBetaIcon from 'browser-logos/src/edge-beta/edge-beta.png'
import edgeCanaryIcon from 'browser-logos/src/edge-canary/edge-canary.png'
Expand All @@ -18,7 +19,7 @@ export const allBrowsersIcons = {
'Chrome': chromeIcon,
'Chrome Beta': chromeBetaIcon,
'Chrome Canary': canaryIcon,
'Chrome Testing': chromeIcon,
'Chrome Test': chromeTestIcon,
'Firefox': firefoxIcon,
'Edge': edgeIcon,
'Chromium': chromiumIcon,
Expand Down
18 changes: 2 additions & 16 deletions packages/launcher/lib/darwin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,10 @@ export const browsers: Detectors = {
appId: 'com.google.Chrome.canary',
versionProperty: 'KSVersion',
},
},
'chrome-for-testing': {
stable: {
appName: 'Google Chrome for Testing.app',
executable: 'Contents/MacOS/Google Chrome for Testing',
appId: 'com.google.Chrome',
versionProperty: 'CFBundleShortVersionString',
},
beta: {
test: {
appName: 'Google Chrome for Testing.app',
executable: 'Contents/MacOS/Google Chrome for Testing',
appId: 'com.google.Chrome.beta',
versionProperty: 'CFBundleShortVersionString',
},
canary: {
appName: 'Google Chrome for Testing.app',
executable: 'Contents/MacOS/Google Chrome for Testing',
appId: 'com.google.Chrome.canary',
appId: 'com.google.chrome.for.testing',
versionProperty: 'CFBundleShortVersionString',
},
},
Expand Down
36 changes: 9 additions & 27 deletions packages/launcher/lib/known-browsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,6 @@ export const validateMinVersion = (browser: FoundBrowser): BrowserValidatorResul

/** list of the browsers we can detect and use by default */
export const knownBrowsers: Browser[] = [
{
name: 'chrome-for-testing',
family: 'chromium',
channel: 'stable',
displayName: 'Chrome Testing',
versionRegex: /Google Chrome for Testing (\S+)/m,
binary: ['chrome'],
minSupportedVersion: MIN_CHROME_VERSION,
},
{
name: 'chrome-for-testing',
family: 'chromium',
channel: 'beta',
displayName: 'Chrome Testing Beta',
versionRegex: /Google Chrome for Testing (\S+)/m,
binary: ['chrome'],
minSupportedVersion: MIN_CHROME_VERSION,
},
{
name: 'chrome-for-testing',
family: 'chromium',
channel: 'canary',
displayName: 'Chrome Testing Canary',
versionRegex: /Google Chrome for Testing (\S+)/m,
binary: ['chrome'],
minSupportedVersion: MIN_CHROME_VERSION,
},
{
name: 'chrome',
family: 'chromium',
Expand Down Expand Up @@ -83,6 +56,15 @@ export const knownBrowsers: Browser[] = [
binary: 'google-chrome-canary',
minSupportedVersion: MIN_CHROME_VERSION,
},
{
name: 'chrome',
family: 'chromium',
channel: 'test',
displayName: 'Chrome Test',
versionRegex: /Google Chrome for Testing (\S+)/m,
binary: 'chrome',
minSupportedVersion: MIN_CHROME_VERSION,
},
{
name: 'chromium',
family: 'chromium',
Expand Down
6 changes: 1 addition & 5 deletions packages/launcher/lib/windows/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ const formPaths: WindowsBrowserPaths = {
stable: formFullAppPath,
beta: formChromeBetaAppPath,
canary: formChromeCanaryAppPath,
},
'chrome-for-testing': {
stable: formChromeForTestingAppPath,
beta: formChromeForTestingAppPath,
canary: formChromeForTestingAppPath,
test: formChromeForTestingAppPath,
},
chromium: {
stable: formChromiumAppPath,
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const BROWSER_FAMILY = ['chromium', 'firefox', 'webkit']

type BrowserName = 'electron' | 'chrome' | 'chromium' | 'firefox' | 'webkit' | string

export type BrowserChannel = 'stable' | 'canary' | 'beta' | 'dev' | 'nightly' | string
export type BrowserChannel = 'stable' | 'canary' | 'beta' | 'dev' | 'nightly' | 'test' | string

export type BrowserFamily = typeof BROWSER_FAMILY[number]

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10986,8 +10986,8 @@ brorand@^1.0.1, brorand@^1.1.0:
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=

"browser-logos@github:alrra/browser-logos":
version "72.0.0"
resolved "https://codeload.github.com/alrra/browser-logos/tar.gz/6e3e6a8da0dc8ec9851a6987fd9bd3523fe1876c"
version "74.1.0"
resolved "https://codeload.github.com/alrra/browser-logos/tar.gz/021a9533c9d872dccf92713f59afb383b29a50eb"

[email protected]:
version "2.0.0"
Expand Down Expand Up @@ -21331,7 +21331,7 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1, loose-envify@^1.4
dependencies:
js-tokens "^3.0.0 || ^4.0.0"

loupe@^2.3.1, loupe@^2.3.6:
loupe@^2.3.6:
version "2.3.7"
resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.7.tgz#6e69b7d4db7d3ab436328013d37d1c8c3540c697"
integrity sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==
Expand Down

2 comments on commit 2abfca4

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2abfca4 Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.17.0/linux-arm64/mschile/chrome_for_testing-2abfca4af87352638c02c70db2d68d1b1bdfc638/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2abfca4 Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.17.0/linux-x64/mschile/chrome_for_testing-2abfca4af87352638c02c70db2d68d1b1bdfc638/cypress.tgz

Please sign in to comment.