mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
5fa8f0069d
* remove babel and add configs * add ts-node * lint scripts * eslint override * remove type module * add expect errors * update js files to ts * fix electron import * remove errors * update readme * add build step * typesync * add eslintignore
18 lines
561 B
TypeScript
18 lines
561 B
TypeScript
export const correctlyLaunched = async app => {
|
|
await expect(app.browserWindow.isDevToolsOpened()).resolves.toBe(false);
|
|
await expect(app.client.getWindowCount()).resolves.toBe(1);
|
|
await expect(app.browserWindow.isMinimized()).resolves.toBe(false);
|
|
await expect(app.browserWindow.isFocused()).resolves.toBe(true);
|
|
};
|
|
|
|
export const focusAfterRestart = async app => {
|
|
await app.client.pause(4000);
|
|
|
|
const count = await app.client.getWindowCount();
|
|
if (count === 0) {
|
|
console.log('No windows found');
|
|
}
|
|
|
|
await app.client.windowByIndex(0);
|
|
};
|