From 15fd570b49128325738ea571d053d1d9aa5e4f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Mon, 25 Sep 2017 20:52:27 -0300 Subject: [PATCH] Refactor modules_position_spec use one instance for all it statements --- tests/e2e/modules_position_spec.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/e2e/modules_position_spec.js b/tests/e2e/modules_position_spec.js index d3091cad..a5f9e735 100644 --- a/tests/e2e/modules_position_spec.js +++ b/tests/e2e/modules_position_spec.js @@ -14,21 +14,19 @@ describe("Position of modules", function () { var app = null; - beforeEach(function () { - return helpers.startApplication({ - args: ["js/electron.js"] - }).then(function (startedApp) { app = startedApp; }) - }); - - afterEach(function () { - return helpers.stopApplication(app); - }); - describe("Using helloworld", function () { + after(function () { + return helpers.stopApplication(app); + }); + before(function () { // Set config sample for use in test process.env.MM_CONFIG_FILE = "tests/configs/modules/positions.js"; + return helpers.startApplication({ + args: ["js/electron.js"] + }).then(function (startedApp) { app = startedApp; }) + }); var positions = ["top_bar", "top_left", "top_center", "top_right", "upper_third",