CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

keepCookies flag also closes tabs from version 1.0.0

Open abidhahmed opened this issue 9 years ago • 2 comments

Have been on version 0.6.3 for a while until today, and I just noticed that keepCookies flag will close existing tabs & clear local storage unlike before. Looks like an intended design decision?

Commit that seems to have started this: https://github.com/Codeception/CodeceptJS/pull/568/commits/68bbe79d5e3ee36a82e165a0a9f388889e193cd9

Wouldn't it be appropriate to keep local storage and not touch existing tabs in a situation where we need cookies to stay alive in the first place? Thoughts?

Thanks. Really love CodeceptJS!

abidhahmed avatar Jul 25 '17 04:07 abidhahmed

@abidhahmed I think that the best way is provide an option that will ignore all flags and keep browser in the same state between tests. I'll add it.

APshenkin avatar Jul 25 '17 07:07 APshenkin

That would be perfect, thanks @APshenkin

abidhahmed avatar Jul 25 '17 08:07 abidhahmed