Skip to content

Commit

Permalink
fixing import account test
Browse files Browse the repository at this point in the history
  • Loading branch information
ost-ptk committed Nov 15, 2023
1 parent 73904e1 commit a498e9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const popup = test.extend<{
await use(page);
},
unlockVault: async ({ page }, use) => {
const unlockVault = async popupPage => {
const unlockVault = async (popupPage?: Page) => {
const currentPage = popupPage || page;

await currentPage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ popup.describe('Popup UI: import account with file', () => {

await popupPage.getByTestId('menu-open-icon').click();

const newPagePromise = context.waitForEvent('page');
await popupPage.getByText('Import account').click();
const importAccountPage = await newPagePromise;
// const newPagePromise = context.waitForEvent('page');
// await popupPage.getByText('Import account').click();
// const importAccountPage = await newPagePromise;

const [importAccountPage] = await Promise.all([
context.waitForEvent('page', { timeout: 5000 }),
popupPage.getByText('Import account').click()
]);

const fileChooserPromise = importAccountPage.waitForEvent('filechooser');

Expand Down

0 comments on commit a498e9a

Please sign in to comment.