text: /* global handleBeforeUnload */
  '@fixture click';
  '@page http://localhost:3000/legacy-fixtures/before-unload-handling/pages/cross-domain.html';
  
  '@require ../../../../../../legacy-fixtures/upload/testcafe-fixtures/mixin.js';
  
  '@test'['Beforeunload handling'] = {
      '1.Click submit button "Enable..."': inIFrame('#iframe', function () {
          act.click('#enableBeforeUnload');
      }),
  
      '2.Click the reload button': inIFrame('#iframe', function () {
          act.click('#reload');
      }),
  
      '3.Wait for dialog': inIFrame('#iframe', function () {
          handleBeforeUnload();
  
          act.wait(30000);
      })
  };
  