aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2019-06-17 22:05:47 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-06-17 22:05:47 +0800
commit18179fd34551680bd65df7c0c3caaa5945d1e94d (patch)
tree13618080a568ed2d8be0c61e9ced62b6eb9963ea /test
parenta47370057e9453e49c1d83a17fcdda275affb940 (diff)
downloadtangerine-wallet-browser-18179fd34551680bd65df7c0c3caaa5945d1e94d.tar
tangerine-wallet-browser-18179fd34551680bd65df7c0c3caaa5945d1e94d.tar.gz
tangerine-wallet-browser-18179fd34551680bd65df7c0c3caaa5945d1e94d.tar.bz2
tangerine-wallet-browser-18179fd34551680bd65df7c0c3caaa5945d1e94d.tar.lz
tangerine-wallet-browser-18179fd34551680bd65df7c0c3caaa5945d1e94d.tar.xz
tangerine-wallet-browser-18179fd34551680bd65df7c0c3caaa5945d1e94d.tar.zst
tangerine-wallet-browser-18179fd34551680bd65df7c0c3caaa5945d1e94d.zip
Add delete to custom RPC form (#6718, #6650)
Diffstat (limited to 'test')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 06778ab99..15087c57f 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -1478,7 +1478,7 @@ describe('MetaMask', function () {
await customRpcInput.clear()
await customRpcInput.sendKeys(customRpcUrl)
- const customRpcSave = await findElement(driver, By.css('.page-container__footer-button'))
+ const customRpcSave = await findElement(driver, By.css('.network-form__footer .btn-secondary'))
await customRpcSave.click()
await delay(largeDelayMs * 2)
})
@@ -1504,5 +1504,19 @@ describe('MetaMask', function () {
assert.equal(customRpcs.length, customRpcUrls.length)
})
+
+ it('deletes a custom RPC', async () => {
+ const networkListItems = await findElements(driver, By.css('.networks-tab__networks-list-name'))
+ const lastNetworkListItem = networkListItems[networkListItems.length - 1]
+ await lastNetworkListItem.click()
+ await delay(100)
+
+ const deleteButton = await findElement(driver, By.css('.btn-danger'))
+ await deleteButton.click()
+ await delay(regularDelayMs)
+ const newNetworkListItems = await findElements(driver, By.css('.networks-tab__networks-list-name'))
+
+ assert.equal(networkListItems.length - 1, newNetworkListItems.length)
+ })
})
})