Fix flaky test-release test
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
5a2a8ac513
commit
e1a98db503
|
@ -36,8 +36,8 @@
|
||||||
"prepare-windows-cert": "node scripts/prepare_windows_cert.js",
|
"prepare-windows-cert": "node scripts/prepare_windows_cert.js",
|
||||||
"publish-to-apt": "NAME=$npm_package_name VERSION=$npm_package_version ./aptly.sh",
|
"publish-to-apt": "NAME=$npm_package_name VERSION=$npm_package_version ./aptly.sh",
|
||||||
"test": "yarn test-node && yarn test-electron",
|
"test": "yarn test-node && yarn test-electron",
|
||||||
"test-electron": "node ts/build/test-electron.js",
|
"test-electron": "node ts/scripts/test-electron.js",
|
||||||
"test-release": "node ts/build/test-release.js",
|
"test-release": "node ts/scripts/test-release.js",
|
||||||
"test-node": "electron-mocha --file test/setup-test-node.js --recursive test/app test/modules ts/test-node ts/test-both",
|
"test-node": "electron-mocha --file test/setup-test-node.js --recursive test/app test/modules ts/test-node ts/test-both",
|
||||||
"test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test-node ts/test-both",
|
"test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test-node ts/test-both",
|
||||||
"eslint": "eslint --cache .",
|
"eslint": "eslint --cache .",
|
||||||
|
|
|
@ -66,7 +66,11 @@ const main = async () => {
|
||||||
|
|
||||||
console.log('Waiting for a first window');
|
console.log('Waiting for a first window');
|
||||||
const window = await app.firstWindow();
|
const window = await app.firstWindow();
|
||||||
await window.waitForLoadState();
|
|
||||||
|
console.log('Waiting for app to fully load');
|
||||||
|
await window.waitForSelector(
|
||||||
|
'.App, .app-loading-screen:has-text("Optimizing")'
|
||||||
|
);
|
||||||
|
|
||||||
console.log('Checking window title');
|
console.log('Checking window title');
|
||||||
assert.strictEqual(await window.title(), packageJson.productName);
|
assert.strictEqual(await window.title(), packageJson.productName);
|
Loading…
Reference in New Issue