File tree Expand file tree Collapse file tree 11 files changed +138
-66
lines changed
Expand file tree Collapse file tree 11 files changed +138
-66
lines changed Original file line number Diff line number Diff line change 3333 "author" : " Chirag" ,
3434 "license" : " MIT Based" ,
3535 "devDependencies" : {
36- "@types/chai" : " ^4.2.15 " ,
36+ "@types/chai" : " ^4.2.18 " ,
3737 "@types/mocha" : " ^8.2.2" ,
38- "@types/node" : " ^14.14.37 " ,
39- "@types/sinon" : " ^9 .0.11 " ,
38+ "@types/node" : " ^15.0.2 " ,
39+ "@types/sinon" : " ^10 .0.0 " ,
4040 "chai" : " ^4.3.4" ,
41- "mocha" : " ^8.3.2 " ,
41+ "mocha" : " ^8.4.0 " ,
4242 "mocha-junit-reporter" : " ^2.0.0" ,
4343 "nyc" : " ^15.1.0" ,
4444 "ts-node" : " ^9.1.1" ,
45- "typescript" : " ^4.2.3 "
45+ "typescript" : " ^4.2.4 "
4646 },
4747 "nyc" : {
4848 "reporter" : [
Original file line number Diff line number Diff line change 1+ export class WindowsConstants {
2+ static readonly EdgeCanary = 'Edge SxS' ;
3+ static readonly EdgeBeta = 'Edge Beta' ;
4+ static readonly EdgeDev = 'Edge Dev' ;
5+ static readonly Edge = 'Edge' ;
6+ }
7+
8+ export class LinuxConstants {
9+ static readonly EdgeCanary = 'microsoft-edge-canary' ;
10+ static readonly EdgeBeta = 'microsoft-edge-beta' ;
11+ static readonly EdgeDev = 'microsoft-edge-dev' ;
12+ static readonly Edge = 'microsoft-edge' ;
13+ }
14+
15+ export class DarwinConstants {
16+ static readonly EdgeCanary = 'Microsoft Edge Canary' ;
17+ static readonly EdgeBeta = 'Microsoft Edge Beta' ;
18+ static readonly EdgeDev = 'Microsoft Edge Dev' ;
19+ static readonly Edge = 'Microsoft Edge' ;
20+ }
Original file line number Diff line number Diff line change 11import BaseBrowser from '../BaseBrowser' ;
2+ import {
3+ DarwinConstants ,
4+ LinuxConstants ,
5+ WindowsConstants ,
6+ } from '../Constants' ;
27import Utilities from '../Utilities' ;
38
49const EdgeBetaBrowser = function ( baseBrowserDecorator , args ) {
@@ -15,11 +20,11 @@ EdgeBetaBrowser.prototype = {
1520 name : 'Edge Beta' ,
1621
1722 DEFAULT_CMD : {
18- linux : Utilities . GetLinuxBin ( 'microsoft-edge-beta' ) ,
23+ linux : Utilities . GetLinuxBin ( LinuxConstants . EdgeBeta ) ,
1924 darwin : Utilities . GetEdgeDarwin (
20- ' /Applications/Microsoft Edge Beta. app/Contents/MacOS/Microsoft Edge Beta'
25+ ` /Applications/${ DarwinConstants . EdgeBeta } . app/Contents/MacOS/${ DarwinConstants . EdgeBeta } `
2126 ) ,
22- win32 : Utilities . GetEdgeExe ( 'Edge Beta' ) ,
27+ win32 : Utilities . GetEdgeExe ( WindowsConstants . EdgeBeta ) ,
2328 } ,
2429
2530 ENV_CMD : 'EDGE_BETA_BIN' ,
Original file line number Diff line number Diff line change 11import BaseBrowser from '../BaseBrowser' ;
2+ import {
3+ DarwinConstants ,
4+ LinuxConstants ,
5+ WindowsConstants ,
6+ } from '../Constants' ;
27import Utilities from '../Utilities' ;
38
49const EdgeCanaryBrowser = function ( baseBrowserDecorator , args ) {
@@ -15,11 +20,11 @@ EdgeCanaryBrowser.prototype = {
1520 name : 'Edge Canary' ,
1621
1722 DEFAULT_CMD : {
18- linux : Utilities . GetLinuxBin ( 'microsoft-edge-canary' ) ,
23+ linux : Utilities . GetLinuxBin ( LinuxConstants . EdgeCanary ) ,
1924 darwin : Utilities . GetEdgeDarwin (
20- ' /Applications/Microsoft Edge Canary. app/Contents/MacOS/Microsoft Edge Canary'
25+ ` /Applications/${ DarwinConstants . EdgeCanary } . app/Contents/MacOS/${ DarwinConstants . EdgeCanary } `
2126 ) ,
22- win32 : Utilities . GetEdgeExe ( 'Edge SxS' ) ,
27+ win32 : Utilities . GetEdgeExe ( WindowsConstants . EdgeCanary ) ,
2328 } ,
2429
2530 ENV_CMD : 'EDGE_CANARY_BIN' ,
Original file line number Diff line number Diff line change 11import BaseBrowser from '../BaseBrowser' ;
2+ import {
3+ DarwinConstants ,
4+ LinuxConstants ,
5+ WindowsConstants ,
6+ } from '../Constants' ;
27import Utilities from '../Utilities' ;
38
49const EdgeDevBrowser = function ( baseBrowserDecorator , args ) {
@@ -15,11 +20,11 @@ EdgeDevBrowser.prototype = {
1520 name : 'Edge Dev' ,
1621
1722 DEFAULT_CMD : {
18- linux : Utilities . GetLinuxBin ( 'microsoft-edge-dev' ) ,
23+ linux : Utilities . GetLinuxBin ( LinuxConstants . EdgeDev ) ,
1924 darwin : Utilities . GetEdgeDarwin (
20- ' /Applications/Microsoft Edge Dev. app/Contents/MacOS/Microsoft Edge Dev'
25+ ` /Applications/${ DarwinConstants . EdgeDev } . app/Contents/MacOS/${ DarwinConstants . EdgeDev } `
2126 ) ,
22- win32 : Utilities . GetEdgeExe ( 'Edge Dev' ) ,
27+ win32 : Utilities . GetEdgeExe ( WindowsConstants . EdgeDev ) ,
2328 } ,
2429
2530 ENV_CMD : 'EDGE_DEV_BIN' ,
Original file line number Diff line number Diff line change 11import BaseBrowser from '../BaseBrowser' ;
2+ import {
3+ DarwinConstants ,
4+ LinuxConstants ,
5+ WindowsConstants ,
6+ } from '../Constants' ;
27import Utilities from '../Utilities' ;
38
49const EdgeStableBrowser = function ( baseBrowserDecorator , args ) {
@@ -15,11 +20,11 @@ EdgeStableBrowser.prototype = {
1520 name : 'Edge' ,
1621
1722 DEFAULT_CMD : {
18- linux : Utilities . GetLinuxBin ( 'microsoft-edge' ) ,
23+ linux : Utilities . GetLinuxBin ( LinuxConstants . Edge ) ,
1924 darwin : Utilities . GetEdgeDarwin (
20- ' /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge'
25+ ` /Applications/${ DarwinConstants . Edge } .app/Contents/MacOS/${ DarwinConstants . Edge } `
2126 ) ,
22- win32 : Utilities . GetEdgeExe ( ' Edge' ) ,
27+ win32 : Utilities . GetEdgeExe ( WindowsConstants . Edge ) ,
2328 } ,
2429
2530 ENV_CMD : 'EDGE_BIN' ,
Original file line number Diff line number Diff line change 11import BaseBrowser from '../BaseBrowser' ;
2+ import {
3+ DarwinConstants ,
4+ LinuxConstants ,
5+ WindowsConstants ,
6+ } from '../Constants' ;
27import Utilities from '../Utilities' ;
38
49const EdgeBetaHeadlessBrowser = function ( baseBrowserDecorator , args ) {
@@ -15,11 +20,11 @@ EdgeBetaHeadlessBrowser.prototype = {
1520 name : 'Edge Beta Headless' ,
1621
1722 DEFAULT_CMD : {
18- linux : Utilities . GetLinuxBin ( 'microsoft-edge-beta' ) ,
23+ linux : Utilities . GetLinuxBin ( LinuxConstants . EdgeBeta ) ,
1924 darwin : Utilities . GetEdgeDarwin (
20- ' /Applications/Microsoft Edge Beta. app/Contents/MacOS/Microsoft Edge Beta'
25+ ` /Applications/${ DarwinConstants . EdgeBeta } . app/Contents/MacOS/${ DarwinConstants . EdgeBeta } `
2126 ) ,
22- win32 : Utilities . GetEdgeExe ( 'Edge Beta' ) ,
27+ win32 : Utilities . GetEdgeExe ( WindowsConstants . EdgeBeta ) ,
2328 } ,
2429
2530 ENV_CMD : 'EDGE_BETA_BIN' ,
Original file line number Diff line number Diff line change 11import BaseBrowser from '../BaseBrowser' ;
2+ import {
3+ DarwinConstants ,
4+ LinuxConstants ,
5+ WindowsConstants ,
6+ } from '../Constants' ;
27import Utilities from '../Utilities' ;
38
49const EdgeCanaryHeadlessBrowser = function ( baseBrowserDecorator , args ) {
@@ -15,11 +20,11 @@ EdgeCanaryHeadlessBrowser.prototype = {
1520 name : 'Edge Canary Headless' ,
1621
1722 DEFAULT_CMD : {
18- linux : Utilities . GetLinuxBin ( 'microsoft-edge-canary' ) ,
23+ linux : Utilities . GetLinuxBin ( LinuxConstants . EdgeCanary ) ,
1924 darwin : Utilities . GetEdgeDarwin (
20- ' /Applications/Microsoft Edge Canary. app/Contents/MacOS/Microsoft Edge Canary'
25+ ` /Applications/${ DarwinConstants . EdgeCanary } . app/Contents/MacOS/${ DarwinConstants . EdgeCanary } `
2126 ) ,
22- win32 : Utilities . GetEdgeExe ( 'Edge SxS' ) ,
27+ win32 : Utilities . GetEdgeExe ( WindowsConstants . EdgeCanary ) ,
2328 } ,
2429
2530 ENV_CMD : 'EDGE_CANARY_BIN' ,
Original file line number Diff line number Diff line change 11import BaseBrowser from '../BaseBrowser' ;
2+ import {
3+ DarwinConstants ,
4+ LinuxConstants ,
5+ WindowsConstants ,
6+ } from '../Constants' ;
27import Utilities from '../Utilities' ;
38
49const EdgeDevHeadlessBrowser = function ( baseBrowserDecorator , args ) {
@@ -15,11 +20,11 @@ EdgeDevHeadlessBrowser.prototype = {
1520 name : 'Edge Dev Headless' ,
1621
1722 DEFAULT_CMD : {
18- linux : Utilities . GetLinuxBin ( 'microsoft-edge-dev' ) ,
23+ linux : Utilities . GetLinuxBin ( LinuxConstants . EdgeDev ) ,
1924 darwin : Utilities . GetEdgeDarwin (
20- ' /Applications/Microsoft Edge Dev. app/Contents/MacOS/Microsoft Edge Dev'
25+ ` /Applications/${ DarwinConstants . EdgeDev } . app/Contents/MacOS/${ DarwinConstants . EdgeDev } `
2126 ) ,
22- win32 : Utilities . GetEdgeExe ( 'Edge Dev' ) ,
27+ win32 : Utilities . GetEdgeExe ( WindowsConstants . EdgeDev ) ,
2328 } ,
2429
2530 ENV_CMD : 'EDGE_DEV_BIN' ,
You can’t perform that action at this time.
0 commit comments