CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

In CodeceptJS using puppeteer helper, getting issue in Window opening after click action

Open midhunsanku opened this issue 1 year ago • 1 comments

We are upgrading CodeceptJS(2.6.11 to 3.6.10) and Puppeteer(9.1.1 to 24.1.1) versions and didn't have this issue with older versions. After upgrade observed this issue while unit testing the scripts

In our application - When clicked on Save button a new Window opens for authentication. It will be authenticated automatically and closes.

Issue: Its trying to open new Window for authentication but its blinking continuously to open Window and script fails.

And also observed a message on browser Debugger Paused in another tab, switch to that tab. however window is not opened completely its blinking.

Tried Manually after script failed, able to open new window and authenticate successfully

midhunsanku avatar Feb 10 '25 14:02 midhunsanku

Observed that chrome-test browser --> its blocking all third party cookies so it is blocking the authentication window opened. After browser is launched if manually allowed third party cookies then its working.

Is there a way to allow third party cookies in codeceptJS or puppeteer.

Any fix to resolve this issue is greatly appreciated

midhunsanku avatar Mar 08 '25 19:03 midhunsanku