mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Remove unused variable in one of the address step tests
This commit is contained in:
parent
432fd1a81b
commit
60565d22c6
1 changed files with 8 additions and 6 deletions
|
@ -53,12 +53,14 @@ tap.beforeEach(function () {
|
||||||
|
|
||||||
//Selects Vatican City as the country, and checks that the state dropdown disappears
|
//Selects Vatican City as the country, and checks that the state dropdown disappears
|
||||||
tap.test('checkStateDropdownOnlyPresentWhenNeeded', function (t) {
|
tap.test('checkStateDropdownOnlyPresentWhenNeeded', function (t) {
|
||||||
var selectCountry = driver.findElement(seleniumWebdriver.By.xpath('//select[@name="address.country"]' +
|
driver.findElement(seleniumWebdriver.By.xpath('//select[@name="address.country"]' +
|
||||||
'/option[@value="va"]')).click();
|
'/option[@value="va"]')).click() //select Vatican City as the country
|
||||||
driver.findElements(seleniumWebdriver.By.name('address.state'))
|
.then(function () {
|
||||||
.then(function (stateDropdown) {
|
driver.findElements(seleniumWebdriver.By.name('address.state'))
|
||||||
t.equal(stateDropdown.length, 0);
|
.then(function (stateDropdown) {
|
||||||
t.end();
|
t.equal(stateDropdown.length, 0);
|
||||||
|
t.end();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue