import { serenity } from '@serenity-js/core'; // wait for any tasks outstanding after the previous scenario // see https://github.com/angular/protractor/issues/4087 export = function() { this.Before({ timeout: serenity.config.stageCueTimeout }, () => serenity.stageManager().waitForNextCue()); };