The 'You' star expressed her gratitude to the 30-year-old pop star in an Instagram post, where she shared behind-the-scenes videos from the set, as well as photos of herself, Grande, and music video director Christian Breslauer. People.com reports.

Badgley, wearing her costume for the shoot, appeared in a white shirt and black pants alongside Grande, who wore a black leather Catwoman-esque outfit. According to a report by People.com, Breslauer was holding a glass of champagne in the shot.

The actor also shared a photo of himself and Grande in casual clothes, eating ice cream and surrounded by cats, from a scene towards the end of the music video. In the last image both of them were looking at each other with the video camera zooming in.Badgley captioned the post, "The boy may have been yours but the pleasure was mine @arianagrande Thank you for inviting me into your classroom for a moment and @christhedirector for creating a little world to play with for a day. "

She praised the pair, who released a song of the same name in 1998, saying, "Hey mom, I'm in a music video! And with @brandy and @monicadenise in attendance?? Honored to be with these icons "

The two-time Grammy winner also shared a post with the same photos, including a blue screen behind her and additional photos of herself working with Breslauer.

"This boy is mine," she captioned the photos.

She also shared scenes from the music video, including the over-the-top moment when her character, dressed in a sleek catsuit, meets Badgley in her apartment.The music video follows Grande as she creates a love interest for fictional Mayor Max Starling (Badgley) so that he falls in love with her.

The song, from their seventh studio album, 'Eternal Sunshine', is a reimagining of Brandy & Monica's 1998 hit of the same name.