Skip to content

Commit

Permalink
FI-1638 fix: prepare step in waitForNewTab action
Browse files Browse the repository at this point in the history
  • Loading branch information
uid11 committed Jan 28, 2025
1 parent 4105421 commit 28a95bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/actions/waitFor/waitForNewTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export const waitForNewTab = (async (

const timeout = finalOptions?.timeout ?? getFullPackConfig().navigationTimeout;

const pagePromise = context.waitForEvent('page', {timeout});

await prepare?.();

const page = await context.waitForEvent('page', {timeout});
const page = await pagePromise;

const newTab: InternalTab = {page};

Expand Down

0 comments on commit 28a95bb

Please sign in to comment.