it is normal you give a wrong quadrature formula (on edge not on traingle)
qte= (quadrature on egde (1d))
qft= … (quadrature on face/triangle (2d))
qfV= … (quadrature on tet (3d))
mesh Th = square(3,3);
fespace Vh(Th,P1);
Vh v=x;
real s = int2d(Th,qft=qf1pT)(v);