From 60565d22c6dc992e2092a76a9867710e38a4fdc3 Mon Sep 17 00:00:00 2001 From: cwillaim Date: Sun, 18 Dec 2016 22:05:38 -0500 Subject: [PATCH] Remove unused variable in one of the address step tests --- .../test_teacher_registration_address_step.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/integration/teacher-registration/test_teacher_registration_address_step.js b/test/integration/teacher-registration/test_teacher_registration_address_step.js index 63770ee72..36d3b623d 100644 --- a/test/integration/teacher-registration/test_teacher_registration_address_step.js +++ b/test/integration/teacher-registration/test_teacher_registration_address_step.js @@ -53,12 +53,14 @@ tap.beforeEach(function () { //Selects Vatican City as the country, and checks that the state dropdown disappears tap.test('checkStateDropdownOnlyPresentWhenNeeded', function (t) { - var selectCountry = driver.findElement(seleniumWebdriver.By.xpath('//select[@name="address.country"]' + - '/option[@value="va"]')).click(); - driver.findElements(seleniumWebdriver.By.name('address.state')) - .then(function (stateDropdown) { - t.equal(stateDropdown.length, 0); - t.end(); + driver.findElement(seleniumWebdriver.By.xpath('//select[@name="address.country"]' + + '/option[@value="va"]')).click() //select Vatican City as the country + .then(function () { + driver.findElements(seleniumWebdriver.By.name('address.state')) + .then(function (stateDropdown) { + t.equal(stateDropdown.length, 0); + t.end(); + }); }); });