If you started as a fresher and have 2 YOE and want to switch anyhow
Then you can do either of the below:
- Stay in the current role and company in the meantime prepare to switch to SDE. (You can find many resources about switching from SDET to SDE)
But this might take 3-12 months depending upon your aspirations and current skillsets.
- Since you are just in the beginning of your career, you can switch as SDET first and then in the new job you can start prepping for shifting to SDE.
(Some companies have programs which support such transitions).
Wishing you the best!