|
|
@ -293,18 +293,13 @@ describe('Stores custom RPC history', function () { |
|
|
|
await driver.clickElement('.btn-danger'); |
|
|
|
await driver.clickElement('.btn-danger'); |
|
|
|
|
|
|
|
|
|
|
|
// wait for confirm delete modal to be visible
|
|
|
|
// wait for confirm delete modal to be visible
|
|
|
|
const confirmDeleteModal = await driver.findVisibleElement( |
|
|
|
await driver.findVisibleElement('span .modal'); |
|
|
|
'span .modal', |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await driver.clickElement( |
|
|
|
await driver.clickElement( |
|
|
|
'.button.btn-danger-primary.modal-container__footer-button', |
|
|
|
'.button.btn-danger-primary.modal-container__footer-button', |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (await driver.isElementPresent('span .modal')) { |
|
|
|
await driver.waitForElementNotPresent('span .modal'); |
|
|
|
// wait for confirm delete modal to be removed from DOM.
|
|
|
|
|
|
|
|
await confirmDeleteModal.waitForElementState('hidden'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const newNetworkListItems = await driver.findElements( |
|
|
|
const newNetworkListItems = await driver.findElements( |
|
|
|
'.networks-tab__networks-list-name', |
|
|
|
'.networks-tab__networks-list-name', |
|
|
|