Potty training girls HELP

M

My daughter is 2 years old. Shows all the signs of being ready for the potty (pulls pants off, tells us when her diaper is dirty, talks about using the potty), so for the last few days we’ve been hitting the potty hardcore. Problem is, we’ll sit there for 30 minutes with snacks and cocomelon and then as soon as we get off she pees in her big girl pants! I’m trying to keep her interested and not frustrated, does anyone have any tips?