The pop and R&B singer is the prosecution’s star witness in its case against the hip-hop musician and mogul