[e2e] Fix RPC flaky test (#16530)

feature/default_network_editable
seaona 2 years ago committed by Dan J Miller
parent 05bc2fdde7
commit 8b1980d77a
  1. 6
      test/e2e/tests/custom-rpc-history.spec.js

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

Loading…
Cancel
Save