From 6b7dd6616a8640fc7f7a6f76cacca37de1826570 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Thu, 24 May 2018 23:38:13 +0900 Subject: [PATCH] Resize test window to click target element --- test/specs/browser/settings_test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/specs/browser/settings_test.js b/test/specs/browser/settings_test.js index 0d48154d..77d220dd 100644 --- a/test/specs/browser/settings_test.js +++ b/test/specs/browser/settings_test.js @@ -186,6 +186,7 @@ describe('browser/settings.html', function desc() { describe('Save tray icon setting on mac', () => { env.shouldTest(it, env.isOneOf(['darwin', 'linux']))('should be saved when it\'s selected', async () => { env.addClientCommands(this.app.client); + await this.app.browserWindow.setSize(1024, 768); // Resize the window to click the element await this.app.client. loadSettingsPage(). click('#inputShowTrayIcon'). @@ -206,6 +207,7 @@ describe('browser/settings.html', function desc() { describe('Save tray icon theme on linux', () => { env.shouldTest(it, process.platform === 'linux')('should be saved when it\'s selected', async () => { env.addClientCommands(this.app.client); + await this.app.browserWindow.setSize(1024, 768); // Resize the window to click the element await this.app.client. loadSettingsPage(). click('#inputShowTrayIcon').