Fix flaky test-release test

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-01-12 12:46:16 -08:00 committed by GitHub
parent 5a2a8ac513
commit e1a98db503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -36,8 +36,8 @@
"prepare-windows-cert": "node scripts/prepare_windows_cert.js",
"publish-to-apt": "NAME=$npm_package_name VERSION=$npm_package_version ./aptly.sh",
"test": "yarn test-node && yarn test-electron",
"test-electron": "node ts/build/test-electron.js",
"test-release": "node ts/build/test-release.js",
"test-electron": "node ts/scripts/test-electron.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-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test-node ts/test-both",
"eslint": "eslint --cache .",

View File

@ -66,7 +66,11 @@ const main = async () => {
console.log('Waiting for a first window');
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');
assert.strictEqual(await window.title(), packageJson.productName);