contexts icon indicating copy to clipboard operation
contexts copied to clipboard

Session is forgotten in between steps

Open cleb opened this issue 8 years ago • 5 comments

Using behatch together with symfony 1.4 and knplabs/friendly-contexts. Whenever we execute a step that uses behatch, it logs out of the system (the session seems to be lost)

I think it is caused by the header reset in 4cc6cfcab8914a76403dc044b450cb3a91e0651a

cleb avatar Jul 30 '17 12:07 cleb

Yes, now the headers are reset between scenarios. You need to login before each scenario, see background section.

sanpii avatar Jul 31 '17 07:07 sanpii

Resetting between scenarios is the expected behavior. However, it resets between each and every step. I think this is because we are using it together with the friendly contexts - should I try to come up with a fix for this?

cleb avatar Jul 31 '17 08:07 cleb

should I try to come up with a fix for this?

I can try to find the bug if you have a simple example to reproduce its.

sanpii avatar Jul 31 '17 15:07 sanpii

I will try to come up with an example (I will have to write it from scratch so as not to compromise the IP of the company I work for so it might take me a while to do it)

cleb avatar Aug 03 '17 06:08 cleb

I think i encounter the same problem. Did you find a solution?

brice avatar Feb 06 '19 15:02 brice