Codeception / module-webdriver

WebDriver module for Codeception

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow supressing debugCookies()

lolli42 opened this issue · comments

Method WebDriver->setCookie() has an argument to suppress debugCookies().

Methods seeCookie(), dontSeeCookie(), resetCookie() and loadSessionSnapshot() don't provide this.

We're using a helper to set cookies for quick access of our login restricted things and the cookie output is kinda noisy, which we'd like to suppress.

I could come up with a quite simple PR to add this. Do you think this would find general acceptance?

setCookie parameter was added in Codeception/Codeception#5709 to fix a similar issue with loadSessionSnapshot.

Adding $showDebug parameter to all cookie methods is a bit ugly, but I don't have any better ideas, so please raise the pull request.

Cool thing. Happy thanks!