Skip to content

Commit

Permalink
fix: add line to open new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
alicechaitea committed Feb 6, 2024
1 parent 887aa4e commit b3e2a44
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ test('import wallet', async ({ }) => {
],
});

const page = await browser.newPage();
await page.waitForTimeout(1000); // Adjust the timeout as needed

// Get all pages (tabs) in the context
const pages = browser.pages();

// The new tab is typically the last one in the list
// // The new tab is typically the last one in the list
const newTab = pages[pages.length - 1];
await newTab.bringToFront(); // Brings the new tab to the foreground

Expand Down

0 comments on commit b3e2a44

Please sign in to comment.