drevops / behat-steps

🧪 A collection of Behat step definitions for Drupal
GNU General Public License v3.0
18 stars 13 forks source link

Added handling for multiple sessions in bigpipe. #148

Closed richardgaunt closed 10 months ago

richardgaunt commented 1 year ago

Issue link: https://github.com/drevops/behat-steps/issues/132

Background Bigpipe trait adds nojs cookie on a BeforeScenario hook but when we log into sessions within a scenario, cookies are cleared with the new session.

What has changed

  1. Changed BeforeScenario to a check for whether bigpipe is turned on and whether we are using a JS capable driver
  2. Added a BeforeStep hook to set the cookie if required
richardgaunt commented 1 year ago

https://github.com/drevops/behat-steps/pull/148#discussion_r1368053901

No we cannot (otherwise I would have done this) because we need to initially set the cookie in the scenario step, then we just need to skip the beforeStep where we ensure is maintained across the scenario.