mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
17 lines
611 B
JavaScript
17 lines
611 B
JavaScript
|
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);
|
||
|
};
|
||
|
|
||
|
const resetToOnboarding = async app => {
|
||
|
await app.webContents.executeJavaScript("localStorage['insomnia::meta::activity'] = null;");
|
||
|
await app.browserWindow.reload(); // reload for local storage clearing to take effect
|
||
|
};
|
||
|
|
||
|
module.exports = {
|
||
|
correctlyLaunched,
|
||
|
resetToOnboarding,
|
||
|
};
|