async function dialogShouldRemain(wrapper) {
        // Error prompt should be present.
        assert.isTrue(wrapper.find('LaunchErrorDialog').exists());
        // Error prompt should also not go away after a short while (see issue #1826)
        try {
          await waitFor(() => {
            wrapper.update();
            if (!wrapper.exists('LaunchErrorDialog')) {
              throw new Error();
            }
            return null;
          }, 10);
        } catch (e) {
          if (!e.message) {
            throw new Error('The dialog disappeared');
          }
        }
      }
// for a short duration longer without disappearing.
for a short duration longer without disappearing.
for a short duration longer without disappearing .
async function dialogShouldRemain(wrapper) {
        assert.isTrue(wrapper.find('LaunchErrorDialog').exists());
        try {
          await waitFor(() => {
            wrapper.update();
            if (!wrapper.exists('LaunchErrorDialog')) {
              throw new Error();
            }
            return null;
          }, 10);
        } catch (e) {
          if (!e.message) {
            throw new Error('The dialog disappeared');
          }
        }
      }
async function dialogShouldRemain ( wrapper ) { assert . isTrue ( wrapper . find ( 'LaunchErrorDialog' ) . exists ( ) ) ; try { await waitFor ( ( ) => { wrapper . update ( ) ; if ( ! wrapper . exists ( 'LaunchErrorDialog' ) ) { throw new Error ( ) ; } return null ; } , 10 ) ; } catch ( e ) { if ( ! e . message ) { throw new Error ( 'The dialog disappeared' ) ; } } }
for a short duration longer without disappearing.
for a short duration longer without disappearing .
// Error prompt should be present. // Error prompt should also not go away after a short while (see issue #1826)