Installing chrome extension opens a new tab and cypress loses the tests #21165
Replies: 6 comments 1 reply
-
any solution for this? |
Beta Was this translation helpful? Give feedback.
-
Same error |
Beta Was this translation helpful? Give feedback.
-
same error, any fix ? |
Beta Was this translation helpful? Give feedback.
-
same |
Beta Was this translation helpful? Give feedback.
-
same issue , please reply how to handle this |
Beta Was this translation helpful? Give feedback.
-
Hello! I'm running into the same issue. Any idea on how to get around this? |
Beta Was this translation helpful? Give feedback.
-
I am testing the chrome extension, and I install it through the code:
module.exports = (on, config) => {
on("before:browser:launch", (browser, launchOptions) => {
launchOptions.extensions.push("absolute/path/to/unzipped/extension");
return launchOptions;
});
};
The extension though is opening the new tab as soon as Cypress is opened. So tests start running in main window, but the new tab (caused by extension) is opened and cypress loses it.
Screen.Recording.2022-04-21.at.14.13.15.mov
Is there any workaround ?
Beta Was this translation helpful? Give feedback.
All reactions