function testDialogOpensOnAction(dialogTagName, eventDetail) {
      assertFalse(!!page.shadowRoot.querySelector(dialogTagName));
      page.fire(CertificateActionEvent, eventDetail);
      Polymer.dom.flush();
      const dialog = page.shadowRoot.querySelector(dialogTagName);
      assertTrue(!!dialog);

      // Some dialogs are opened after some async operation to fetch initial
      // data. Ensure that the underlying cr-dialog is actually opened before
      // returning.
      return test_util.whenAttributeIs(dialog.$.dialog, 'open', '');
    }
/**
     * Tests that a dialog opens as a response to a
     * CertificateActionEvent.
     * @param {string} dialogTagName The type of dialog to test.
     * @param {CertificateActionEventDetail} eventDetail
     * @return {!Promise}
     */
Tests that a dialog opens as a response to a
CertificateActionEvent.
@param {string} dialogTagName The type of dialog to test.
@param {CertificateActionEventDetail} eventDetail
@return {!Promise}
Tests that a dialog opens as a response to a CertificateActionEvent . @param { string } dialogTagName The type of dialog to test . @param { CertificateActionEventDetail } eventDetail @return { !Promise }
function testDialogOpensOnAction(dialogTagName, eventDetail) {
      assertFalse(!!page.shadowRoot.querySelector(dialogTagName));
      page.fire(CertificateActionEvent, eventDetail);
      Polymer.dom.flush();
      const dialog = page.shadowRoot.querySelector(dialogTagName);
      assertTrue(!!dialog);
      return test_util.whenAttributeIs(dialog.$.dialog, 'open', '');
    }
function testDialogOpensOnAction ( dialogTagName , eventDetail ) { assertFalse ( ! ! page . shadowRoot . querySelector ( dialogTagName ) ) ; page . fire ( CertificateActionEvent , eventDetail ) ; Polymer . dom . flush ( ) ; const dialog = page . shadowRoot . querySelector ( dialogTagName ) ; assertTrue ( ! ! dialog ) ; return test_util . whenAttributeIs ( dialog . $ . dialog , 'open' , '' ) ; }
Tests that a dialog opens as a response to a
 CertificateActionEvent.
Tests that a dialog opens as a response to a CertificateActionEvent .
// Some dialogs are opened after some async operation to fetch initial // data. Ensure that the underlying cr-dialog is actually opened before // returning.