Skip to content

Commit

Permalink
fix(e2e): update app naming for tests on channel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Nov 19, 2019
1 parent 480dc6a commit 8062980
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .testcafe-electron-rc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// const RELEASE_FOLDER_NAME = require('./releaseName');
let TEST_UNPACKED = process.env.TEST_UNPACKED;
const pkg = require('./package.json');

let appString = 'safe-browser';
let appResources = 'resources/app.asar';
Expand All @@ -9,9 +10,18 @@ const MAC_OS = 'darwin';
const LINUX = 'linux';
const WINDOWS = 'win32';

let appChannel = '';
if (pkg.version.includes('-alpha')) {
appChannel = ' Alpha';
}

if (pkg.version.includes('-beta')) {
appChannel = ' Beta';
}

if (platform === MAC_OS) {
PLATFORM_NAME = 'mac';
appString = 'SAFE Browser.app';
appString = `SAFE Browser${appChannel}.app`;
appResources = 'Contents/Resources/app.asar';
}

Expand All @@ -21,7 +31,7 @@ if (platform === LINUX) {

if (platform === WINDOWS) {
PLATFORM_NAME = 'win-unpacked';
appString = 'SAFE Browser.exe';
appString = `SAFE Browser${appChannel}.exe`;
}

const allArgs = ['--ignoreAppLocation'];
Expand Down

0 comments on commit 8062980

Please # to comment.