From 6336a49d43fdd1de8021298a1e1a09981169f705 Mon Sep 17 00:00:00 2001 From: Arindam Bose Date: Mon, 17 Feb 2020 18:50:17 -0800 Subject: [PATCH] Test CI with looking up the size of the parent div instead --- test/browser/controls/padding.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/browser/controls/padding.test.js b/test/browser/controls/padding.test.js index c6936907d4b..7eaa2026188 100644 --- a/test/browser/controls/padding.test.js +++ b/test/browser/controls/padding.test.js @@ -8,7 +8,8 @@ test("Map controls respect padding", async t => { await t.test("Containers have appropriate amount of padding applied", async t => { const canvas = await browser.getMapCanvas(`${browser.basePath}/test/browser/fixtures/land.html`); - const canvasRect = await canvas.getRect(); + const elem = await driver.findElement(By.id('map')); + const canvasRect = await elem.getRect(); console.log(canvasRect); // Add controls await driver.executeScript(() => {