Skip to content

Cannot pin tunnel browser to SemVer version #1178

Description

@kgibb

Expected behavior

Pin a particular browser version on a remote Selenium grid.

"environments": [
    {
	  "browserName": "chrome",
	  "browserVersion": "87.0.4280.66"
    }
]

Current behavior

Error: Invalid alias syntax "87.0.4280.66"
  at resolveVersionAlias @ src/lib/resolveEnvironments.ts:174:10
  @ src/lib/resolveEnvironments.ts:312:23
  at Array.map @ anonymous
  at resolveVersions @ src/lib/resolveEnvironments.ts:311:42
  @ src/lib/resolveEnvironments.ts:36:27
  at Array.map @ anonymous
  at Object.resolveEnvironments [as default] @ src/lib/resolveEnvironments.ts:35:48
  @ src/lib/executors/Node.ts:858:12
  @ node_modules/@theintern/common/index.js:16:7174

Setting to "87" throws an error on the grid as it is not an exact match.

Possible solution

Remove number validation if it is not necessary for other services.

throw new Error('Invalid alias syntax "' + version + '"');

Intern: 4.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions