Skip to content

Commit

Permalink
Bump @matthijsburgh/vue-cli-plugin-electron-builder from 2.2.0 to 3.0…
Browse files Browse the repository at this point in the history
….0 (#559)

Bumps
[@matthijsburgh/vue-cli-plugin-electron-builder](https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder)
from 2.2.0 to 3.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/releases"><code>@​matthijsburgh/vue-cli-plugin-electron-builder</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v3.0.0 - Playwright testing and electron&gt;=19</h2>
<h2>What's Changed</h2>
<ul>
<li>Replace spectron by Playwright by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/12">MatthijsBurgh/vue-cli-plugin-electron-builder#12</a></li>
<li>Migrate to Node 18 by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/16">MatthijsBurgh/vue-cli-plugin-electron-builder#16</a></li>
<li>chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/19">MatthijsBurgh/vue-cli-plugin-electron-builder#19</a></li>
<li>(actions) also run Ubuntu 22.04 by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/20">MatthijsBurgh/vue-cli-plugin-electron-builder#20</a></li>
<li>chore(deps-dev): bump jest from 26.6.3 to 29.5.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/7">MatthijsBurgh/vue-cli-plugin-electron-builder#7</a></li>
<li>chore(deps): bump qs from 6.5.2 to 6.5.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/18">MatthijsBurgh/vue-cli-plugin-electron-builder#18</a></li>
<li>chore(deps): bump jszip from 3.7.1 to 3.10.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/17">MatthijsBurgh/vue-cli-plugin-electron-builder#17</a></li>
<li>chore(deps): bump <code>@​sideway/formula</code> from 3.0.0 to 3.0.1
by <a href="https://github.com/dependabot"><code>@​dependabot</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/15">MatthijsBurgh/vue-cli-plugin-electron-builder#15</a></li>
<li>(actions) manually cache yarn by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/21">MatthijsBurgh/vue-cli-plugin-electron-builder#21</a></li>
<li>chore(deps-dev): bump rimraf from 3.0.2 to 4.4.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/4">MatthijsBurgh/vue-cli-plugin-electron-builder#4</a></li>
<li>chore(deps-dev): bump electron from 17.4.11 to 23.1.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/22">MatthijsBurgh/vue-cli-plugin-electron-builder#22</a></li>
<li>chore(deps): bump minimist from 1.2.5 to 1.2.8 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/14">MatthijsBurgh/vue-cli-plugin-electron-builder#14</a></li>
<li>chore(deps): bump fs-extra from 10.1.0 to 11.1.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/5">MatthijsBurgh/vue-cli-plugin-electron-builder#5</a></li>
<li>(actions) don't use cache on windows by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/24">MatthijsBurgh/vue-cli-plugin-electron-builder#24</a></li>
<li>chore(deps-dev): bump <code>@​babel/core</code> from 7.13.10 to
7.21.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/29">MatthijsBurgh/vue-cli-plugin-electron-builder#29</a></li>
<li>chore(deps-dev): bump electron from 23.1.4 to 23.2.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/25">MatthijsBurgh/vue-cli-plugin-electron-builder#25</a></li>
<li>chore(deps): bump yargs from 17.6.0 to 17.7.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/28">MatthijsBurgh/vue-cli-plugin-electron-builder#28</a></li>
<li>chore(deps-dev): bump eslint-plugin-vue from 9.9.0 to 9.10.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/27">MatthijsBurgh/vue-cli-plugin-electron-builder#27</a></li>
<li>(playwright) use gh reporter in CI by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/30">MatthijsBurgh/vue-cli-plugin-electron-builder#30</a></li>
<li>Run linting in CI by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/31">MatthijsBurgh/vue-cli-plugin-electron-builder#31</a></li>
<li>chore(deps-dev): bump typescript from 4.9.3 to 5.0.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/6">MatthijsBurgh/vue-cli-plugin-electron-builder#6</a></li>
<li>(Jest) use GH reporter by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/32">MatthijsBurgh/vue-cli-plugin-electron-builder#32</a></li>
<li>chore(deps): bump plist from 3.0.1 to 3.0.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/33">MatthijsBurgh/vue-cli-plugin-electron-builder#33</a></li>
<li>chore(deps): bump url-parse from 1.5.3 to 1.5.10 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/34">MatthijsBurgh/vue-cli-plugin-electron-builder#34</a></li>
<li>chore(deps): bump prismjs from 1.25.0 to 1.29.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/35">MatthijsBurgh/vue-cli-plugin-electron-builder#35</a></li>
<li>chore(deps-dev): bump eslint-plugin-import from 2.26.0 to 2.27.5 by
<a href="https://github.com/dependabot"><code>@​dependabot</code></a> in
<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/38">MatthijsBurgh/vue-cli-plugin-electron-builder#38</a></li>
<li>chore(deps-dev): bump <code>@​babel/eslint-parser</code> from 7.19.1
to 7.21.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/37">MatthijsBurgh/vue-cli-plugin-electron-builder#37</a></li>
<li>chore(deps): bump <code>@​playwright/test</code> from 1.30.0 to
1.32.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/36">MatthijsBurgh/vue-cli-plugin-electron-builder#36</a></li>
<li>chore(deps-dev): bump playwright-core from 1.30.0 to 1.32.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/39">MatthijsBurgh/vue-cli-plugin-electron-builder#39</a></li>
<li>chore(deps): bump split2 from 4.1.0 to 4.2.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/40">MatthijsBurgh/vue-cli-plugin-electron-builder#40</a></li>
<li>Set NODE_OPTIONS for the docs scripts by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/41">MatthijsBurgh/vue-cli-plugin-electron-builder#41</a></li>
<li>chore(deps-dev): bump electron from 23.2.0 to 24.0.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/42">MatthijsBurgh/vue-cli-plugin-electron-builder#42</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/dependabot"><code>@​dependabot</code></a> made
their first contribution in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/19">MatthijsBurgh/vue-cli-plugin-electron-builder#19</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/compare/v2.2.1...v3.0.0">https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/compare/v2.2.1...v3.0.0</a></p>
<h2>v2.2.1 - Small update in docs</h2>
<h2>What's Changed</h2>
<ul>
<li>(docs) Fix forgotten user replacement by <a
href="https://github.com/MatthijsBurgh"><code>@​MatthijsBurgh</code></a>
in <a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/pull/13">MatthijsBurgh/vue-cli-plugin-electron-builder#13</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/compare/v2.2.0...v2.2.1">https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/compare/v2.2.0...v2.2.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/f9fbc0a151c06dcacee0c3375de9eabd4d35e1b7"><code>f9fbc0a</code></a>
v3.0.0</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/8224fc7f763143e904ef56f53cf7fdbb7f0e319c"><code>8224fc7</code></a>
chore(deps-dev): bump electron from 23.2.0 to 24.0.0 (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/42">#42</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/dc63761aa0f6f4aa6763d4332b6eac7d06f912a6"><code>dc63761</code></a>
Set NODE_OPTIONS for the docs scripts (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/41">#41</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/0a09ed5c3e7c62b6287ef2e2075e985f583d3639"><code>0a09ed5</code></a>
chore(deps): bump split2 from 4.1.0 to 4.2.0 (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/40">#40</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/73c70ccc0c27549866c6eb60ac8571320bb5a250"><code>73c70cc</code></a>
chore(deps-dev): bump playwright-core from 1.30.0 to 1.32.0 (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/39">#39</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/1d21d0df3d0ab3c6a90ceeabae647f9d4d648c77"><code>1d21d0d</code></a>
chore(deps): bump <code>@​playwright/test</code> from 1.30.0 to 1.32.0
(<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/36">#36</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/76159bcd554727ec9451e0cc86bad95264339e60"><code>76159bc</code></a>
chore(deps-dev): bump <code>@​babel/eslint-parser</code> from 7.19.1 to
7.21.3 (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/37">#37</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/d94dc53e59b528bb7f3384a7c9a0fa0253c96691"><code>d94dc53</code></a>
chore(deps-dev): bump eslint-plugin-import from 2.26.0 to 2.27.5 (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/38">#38</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/eb5359c4f524b9ce23bd2f0629470a39b19c87a1"><code>eb5359c</code></a>
chore(deps): bump prismjs from 1.25.0 to 1.29.0 (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/35">#35</a>)</li>
<li><a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/commit/06e7e5cc3ddd33d8e9273f74b40e1b58fd3d8003"><code>06e7e5c</code></a>
chore(deps): bump url-parse from 1.5.3 to 1.5.10 (<a
href="https://redirect.github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/issues/34">#34</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/MatthijsBurgh/vue-cli-plugin-electron-builder/compare/v2.2.0...v3.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@matthijsburgh/vue-cli-plugin-electron-builder&package-manager=npm_and_yarn&previous-version=2.2.0&new-version=3.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
MatthijsBurgh authored Apr 5, 2023
2 parents 1920830 + 036e528 commit db47eb2
Show file tree
Hide file tree
Showing 8 changed files with 7,072 additions and 13,365 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ module.exports = {
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
mocha: true
}
]
}
]
}
20,280 changes: 6,994 additions & 13,286 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"test": "npm run test:unit",
"test": "playwright test",
"lint": "vue-cli-service lint",
"preelectron:build": "npm run lint && npm run electron:generate-icons",
"electron:build": "vue-cli-service electron:build --publish=never",
Expand All @@ -41,24 +40,21 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.21.3",
"@matthijsburgh/vue-cli-plugin-electron-builder": "~2.2.0",
"@matthijsburgh/vue-cli-plugin-electron-builder": "^3.0.1",
"@playwright/test": "^1.30.0",
"@vue/cli-plugin-babel": "~5.0.1",
"@vue/cli-plugin-eslint": "~5.0.1",
"@vue/cli-plugin-unit-mocha": "~5.0.1",
"@vue/cli-service": "~4.5.15",
"@vue/eslint-config-standard": "^8.0.1",
"@vue/test-utils": "^1.3.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.0",
"electron": "^17.3.0",
"electron": "^24.0.0",
"electron-devtools-installer": "^3.2.0",
"electron-icon-builder": "^2.0.1",
"eslint": "^8.37.0",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.0",
"eslint-plugin-vue": "^9.10.0",
"spectron": "^19.0.0",
"playwright-core": "^1.30.0",
"vue-template-compiler": "^2.7.10"
}
}
7 changes: 7 additions & 0 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from '@playwright/test'

export default defineConfig({
reporter: process.env.CI ? 'github' : 'list',
testDir: './tests',
testMatch: ['**/*.js']
})
8 changes: 4 additions & 4 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ async function createWindow () {
height: windowHeight,
useContentSize: true,
alwaysOnTop: !isDevelopment,
resizable: isDevelopment,
icon: path.join(__static, 'icon.png'),
webPreferences: {
// Use pluginOptions.nodeIntegration, leave this alone
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION,
contextIsolation: !process.env.ELECTRON_NODE_INTEGRATION,
preload: path.join(__dirname, '..', 'src', 'preload.js')
// See MatthijsBurgh.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
nodeIntegration: !!process.env.ELECTRON_NODE_INTEGRATION,
contextIsolation: !process.env.ELECTRON_NODE_INTEGRATION
}
})

Expand Down
1 change: 0 additions & 1 deletion src/preload.js

This file was deleted.

61 changes: 61 additions & 0 deletions tests/electron.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import { testWithPlaywright } from '@matthijsburgh/vue-cli-plugin-electron-builder'
import { expect, test } from '@playwright/test'
test.setTimeout(60000)

test.describe('Window Loads Properly', async () => {
let app, stop, win, browserWindow

test.beforeAll(async () => {
// Wait for dev server to start
const { app: _app, stop: _stop } = await testWithPlaywright({ launchOptions: { args: ['dist_electron/index.js', 'random_host.local'] } })
app = _app
stop = _stop
win = await app.firstWindow()
browserWindow = await app.browserWindow(win)
})

test.afterAll(async () => {
if (app) {
return await stop()
}
})

test('Window count is one', () => {
expect(app.windows().length).toBe(1)
})

test('Window is not minimized', async () => {
const isMinimized = await browserWindow.evaluate((browserWindow) => { return browserWindow.isMinimized() })
expect(isMinimized).toBe(false)
})

test('Window is visible', async () => {
const isVisible = await browserWindow.evaluate((browserWindow) => { return browserWindow.isVisible() })
expect(isVisible).toBe(true)
})

test('Window bounds are correct', async () => {
const { height, width } = await browserWindow.evaluate((browserWindow) => { return { ...browserWindow.getBounds() } })
expect(width).toBe(375)
expect(height).toBe(60)
})

test('Window is not resizable', async () => {
const isResizable = await browserWindow.evaluate((browserWindow) => { return browserWindow.isResizable() })
expect(isResizable).toBe(false)
})

test('Window should be always on top', async () => {
const isAlwaysOnTop = await browserWindow.evaluate((browserWindow) => { return browserWindow.isAlwaysOnTop() })
expect(isAlwaysOnTop).toBe(true)
})

test('Window title is correct', async () => {
expect(await win.title()).toBe('hero-dashboard')
})

test('Argument passing works', async () => {
const argv = await app.evaluate(async () => process.argv)
expect(argv).toContain('random_host.local')
})
})
61 changes: 0 additions & 61 deletions tests/unit/electron.spec.js

This file was deleted.

0 comments on commit db47eb2

Please sign in to comment.