Honestly, no. I found salaries were similar for the same level of role (maybe a little more in dev) but I was able to get much more senior SDET roles which counteracted this. Instead of being a mid-level dev, I was a senior/lead SDET approaching staff level.
Edit: When I made the shift initially from dev to SDET, I had a 50% pay rise. In London I regularly get approached for £85k/$100k roles as an SDET. True devs might earn more than that at the same companies but it’s already much higher than most devs earn in the UK, and I’m not experienced enough to compete for the dev counterpart roles.
I think it’s really worth considering, but don’t do it off of my post :) Chat to your family about it but also consider speaking to your doctor about anti anxiety counselling/medication. Helped me get through a lot of it.
Learned this the hard way. Spent the last 7 years grinding text books resulting in a place on a Masters in CS and a ~$200k income while working remotely from the UK (without a degree, at 26). Whole purpose was to earn as much as I could and it took over my life. Now I’m on antidepressants and overweight. Recently quit my uni course and job, and settled for a role around $65k with a New Years resolution to never be a workaholic again. Feeling better already :)