Why did she flirt with me in front of her boyfriend?

This girl in class used to flirt with me, but it always felt like she was testing me and I overheard her tell another girl she was just playing games with me. The way she talked about me sounded condescending and I was pissed but just stayed away from her.

Then I was at a party where she showed up with her boyfriend. At first it was awkward, but we both relaxed. Then she got away from her boyfriend at one point and just hovered around me until I started talking to her. Then she kept smiling at me and giggling at everything I said all night until her boyfriend got mad and pulled her away.

Now I'm wondering if she actually likes me.
Why did she flirt with me in front of her boyfriend?
Post Opinion