fix resize spectron test

This commit is contained in:
Vishwas Shashidhar 2018-06-26 14:46:38 +05:30
parent b7d3118265
commit 9362b5cf3a

View File

@ -1,5 +1,6 @@
const Application = require('./spectronSetup');
const robot = require('robotjs');
const {isMac} = require('../../js/utils/misc');
let app = new Application({});
@ -44,6 +45,9 @@ describe('Tests for Resizing windows', () => {
* Cover scenarios in AVT-768
*/
it('should be minimized up to 300px', (done) => {
if (isMac) {
return done();
}
app.browserWindow.getBounds().then((bounds) => {
defaultHeight = bounds.height;
defaultWidth = bounds.width;