From 8bb67d3a595c34f3a40fbff0a57a5d2dfb275bc2 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Tue, 21 Feb 2017 16:52:00 -0800 Subject: [PATCH 1/3] . --- e2e/screenshot.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/screenshot.ts b/e2e/screenshot.ts index e5df95c695d0..f6a2d5af0901 100644 --- a/e2e/screenshot.ts +++ b/e2e/screenshot.ts @@ -3,11 +3,14 @@ import * as path from 'path'; import {browser} from 'protractor'; const OUTPUT_DIR = './screenshots/'; +const HEIGHT = 768; +const WIDTH = 1024; let currentJasmineSpecName = ''; /** Adds a custom jasmine reporter that simply keeps track of the current test name. */ function initializeEnvironment(jasmine: any) { + browser.manage().window().setSize(WIDTH, HEIGHT); let reporter = new jasmine.JsApiReporter({}); reporter.specStarted = function(result: any) { currentJasmineSpecName = result.fullName; From 65bcc62381b84a2b5aa551b43c1509457c97c0d0 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Tue, 21 Feb 2017 17:28:27 -0800 Subject: [PATCH 2/3] Try to make screenshot image size same as before --- e2e/screenshot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/screenshot.ts b/e2e/screenshot.ts index f6a2d5af0901..b781ccacf693 100644 --- a/e2e/screenshot.ts +++ b/e2e/screenshot.ts @@ -3,8 +3,8 @@ import * as path from 'path'; import {browser} from 'protractor'; const OUTPUT_DIR = './screenshots/'; -const HEIGHT = 768; -const WIDTH = 1024; +const HEIGHT = 788; +const WIDTH = 1034; let currentJasmineSpecName = ''; From cf99bd97538962aa5b3c39e9bad68d40ec01a4c8 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Tue, 21 Feb 2017 17:36:03 -0800 Subject: [PATCH 3/3] change back to 1024 x 768 --- e2e/screenshot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/screenshot.ts b/e2e/screenshot.ts index b781ccacf693..f6a2d5af0901 100644 --- a/e2e/screenshot.ts +++ b/e2e/screenshot.ts @@ -3,8 +3,8 @@ import * as path from 'path'; import {browser} from 'protractor'; const OUTPUT_DIR = './screenshots/'; -const HEIGHT = 788; -const WIDTH = 1034; +const HEIGHT = 768; +const WIDTH = 1024; let currentJasmineSpecName = '';