mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-05-29 11:10:46 +00:00
e664bc6af8
This PR allows us to code playwright integration tests that can potentially replace some of our manual tests and allow us automated testing of the app itself. Current technical limitations: * No app level keyboard simulation support (e.g, zoom in, zoom out, etc.) * No code coverage support, so even though we are testing the app, the code coverage does not reflect this fact
28 lines
972 B
TypeScript
28 lines
972 B
TypeScript
import * as path from 'path';
|
|
|
|
export const DEFAULT_APP_NAME = 'APP';
|
|
|
|
// Update both DEFAULT_ELECTRON_VERSION and DEFAULT_CHROME_VERSION together,
|
|
// and update package.json / devDeps / electron to value of DEFAULT_ELECTRON_VERSION
|
|
// and update app / package.json / devDeps / electron to value of DEFAULT_ELECTRON_VERSION
|
|
export const DEFAULT_ELECTRON_VERSION = '18.0.3';
|
|
// https://atom.io/download/atom-shell/index.json
|
|
export const DEFAULT_CHROME_VERSION = '100.0.4896.75';
|
|
|
|
// Update each of these periodically
|
|
// https://product-details.mozilla.org/1.0/firefox_versions.json
|
|
export const DEFAULT_FIREFOX_VERSION = '99.0.1';
|
|
|
|
// https://en.wikipedia.org/wiki/Safari_version_history
|
|
export const DEFAULT_SAFARI_VERSION = {
|
|
majorVersion: 15,
|
|
version: '15.4',
|
|
webkitVersion: '605.1.15',
|
|
};
|
|
|
|
export const ELECTRON_MAJOR_VERSION = parseInt(
|
|
DEFAULT_ELECTRON_VERSION.split('.')[0],
|
|
10,
|
|
);
|
|
export const PLACEHOLDER_APP_DIR = path.join(__dirname, './../', 'app');
|