diff options
author | Akshit Kr Nagpal <akshitkrnagpal@gmail.com> | 2019-07-02 20:13:02 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-07-02 20:13:02 +0800 |
commit | 687984a9383d948cbe2e8964973ee8c2f0370e6d (patch) | |
tree | f59ea31a0287289447d50d8a5de60546fce98b63 /test | |
parent | 9fd8a3d46e2f3320f7eacc654e56f9466196b728 (diff) | |
download | tangerine-wallet-browser-687984a9383d948cbe2e8964973ee8c2f0370e6d.tar tangerine-wallet-browser-687984a9383d948cbe2e8964973ee8c2f0370e6d.tar.gz tangerine-wallet-browser-687984a9383d948cbe2e8964973ee8c2f0370e6d.tar.bz2 tangerine-wallet-browser-687984a9383d948cbe2e8964973ee8c2f0370e6d.tar.lz tangerine-wallet-browser-687984a9383d948cbe2e8964973ee8c2f0370e6d.tar.xz tangerine-wallet-browser-687984a9383d948cbe2e8964973ee8c2f0370e6d.tar.zst tangerine-wallet-browser-687984a9383d948cbe2e8964973ee8c2f0370e6d.zip |
Added Confirmation Modal for Delete Network (#6776)
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/beta/metamask-beta-ui.spec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index 7aa386637..e61277c18 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -1522,6 +1522,15 @@ describe('MetaMask', function () { const deleteButton = await findElement(driver, By.css('.btn-danger')) await deleteButton.click() await delay(regularDelayMs) + + const confirmDeleteNetworkModal = await findElement(driver, By.css('span .modal')) + + const byConfirmDeleteNetworkButton = By.css('.button.btn-danger.modal-container__footer-button') + const confirmDeleteNetworkButton = await driver.wait(until.elementLocated(byConfirmDeleteNetworkButton)) + await confirmDeleteNetworkButton.click() + + await driver.wait(until.stalenessOf(confirmDeleteNetworkModal)) + const newNetworkListItems = await findElements(driver, By.css('.networks-tab__networks-list-name')) assert.equal(networkListItems.length - 1, newNetworkListItems.length) |