mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
25 lines
491 B
JavaScript
25 lines
491 B
JavaScript
// Native
|
|
import path from 'path';
|
|
|
|
// Packages
|
|
import test from 'ava';
|
|
import {Application} from 'spectron';
|
|
|
|
let app;
|
|
|
|
test.before(async () => {
|
|
app = new Application({
|
|
path: path.join(__dirname, '../dist/mac/HyperTerm.app/Contents/MacOS/HyperTerm')
|
|
});
|
|
|
|
await app.start();
|
|
});
|
|
|
|
test.after(async () => {
|
|
await app.stop();
|
|
});
|
|
|
|
test('see if dev tools are open', async t => {
|
|
await app.client.waitUntilWindowLoaded();
|
|
t.false(await app.browserWindow.isDevToolsOpened());
|
|
});
|