Fix flaky test-release test
This commit is contained in:
parent
0a90380ac8
commit
e5111c4565
3 changed files with 7 additions and 3 deletions
|
@ -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 .",
|
||||
|
|
|
@ -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);
|
Loading…
Add table
Reference in a new issue