-
|
I want to run tests without having to run whole authentication flow. Found a forum thread discussing such functionality in wallaby Based on the proposed solutions, organized the test case, but I can't localize the cause of the problems below (wrong cookie format or specifics of set_cookie operation?) but ran into a few problems (these are pictured), code here
I have prepared a test example |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Wrote helper for change Wallaby session based on desired data, I've try to generate a session cookie without a real request by manually simulating parts of the Plug pipeline. It forces the execution of any Helper required session options inside test environment test.exs and minor changes endpoint.ex |
Beta Was this translation helpful? Give feedback.

Wrote helper for change Wallaby session based on desired data, I've try to generate a session cookie without a real request by manually simulating parts of the Plug pipeline. It forces the execution of any
before_sendhooks to finalize the response (which includes generating the cookie). Current approach is a bit closer to actual cookie generation than justput_resp_cookieput_session.ex