Ghost/ghost/core/test/e2e-frontend
Simon Backx 3a78cf48c9
Fixed deleting session when requesting identity for invalid session (#19017)
ref https://ghost.slack.com/archives/C02G9E68C/p1700129928489809

- When the GET /api/session endpoint is called, the session is deleted
if it is invalid
- We don't have a body parser for this GET endoint, and the request
object was passed to the deleteSession handler. This caused a type error
(cannot read properties of undefined)
- We had dangling promise because deleteSession is async and wasn't
awaited, causing random errors in tests
- Added a test that would have caught this earlier
2023-11-16 11:01:50 +00:00
..
helpers Fixed Tier events being created when Posts are edited 2022-09-05 17:19:27 +01:00
advanced_url_config.test.js Prevent simple error logs by stubbing log library 2023-03-03 18:25:53 +00:00
custom_routes.test.js 🐛 Fixed sitemaps with no content (#15571) 2022-10-12 14:11:19 +01:00
default_routes.test.js Added Source as the new default theme 2023-10-03 14:02:08 +02:00
email_routes.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
member_stats.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
members.test.js Fixed deleting session when requesting identity for invalid session (#19017) 2023-11-16 11:01:50 +00:00
preview_routes.test.js 🐛 Redirected email previews to /email/ route (#18976) 2023-11-14 13:31:41 -06:00