The show appears to have mainly gone down the route of scorned ex-lover and so Shae forgets her protectiveness and friendship to Sansa just for the sake of plot... like so many things with the show.
TYRION: I'm a married man. My wife has suffered a great deal, as you well know. I don't want her to suffer anymore on my account. I need to uphold my vows.
SHAE: She doesn't want you.
[...]
SHAE: We will fight them together. It's like you said, I am yours and you are mine.
TYRION: You're a whore! Sansa is fit to bear my children and you are not. I can't be in love with a whore. I can't have children with a whore. How many men have you been with? 500? 5,000?
SHAE: How many whores have you been with?
TYRION: I have enjoyed my time with all of them and I have enjoyed my time with you most of all. But now that time is over.
TYRION walks over and opens the door. SHAE sobs. BRONN enters.
TYRION: You'll have a comfortable life in Pentos. Bronn will escort you to your ship.
SHAE continues to sob. BRONN clasps her shoulder to lead her out. She turns quickly and slaps him, then storms off, crying. BRONN looks to TYRION, then exits. TYRION walks to the table and violently slaps his cup to the ground.
Game of Thrones, Season 4 Episode 2, "The Lion and the Rose"
And the things she says at the trial again indicate that she is "annoyed" that Tyrion wed Sansa.
SHAE: I am a whore. Remember? That was before he married Sansa. After that, all he wanted was her. But she wouldn't let him into her bed. So he promised to kill King Joffrey for her.
Game of Thrones, Season 4 Episode 6, "The Laws of Gods and Men"
The implication, before the above conversation takes place, also appears to be that Cersei and Tywin have noticed what is going on and intercepted her leaving. They then probably used Tyrion's marriage to Sansa and her being hurt to manipulate her to do what they want.
MACE bows and exits. SHAE brings a tray to the table and sets it before SANSA.
CERSEI: She's the whore I told you about. The dark-haired one.
SHAE exits.
TYWIN: Have her brought to the Tower of the Hand before the wedding.
TYRION looks concerned. PODRICK places a large tome before JOFFREY and TYRION walks to the front of the table.
Game of Thrones, Season 4 Episode 2, "The Lion and the Rose"
This is made even clearer when Shae is found in Tywin's chambers by Tyrion being used as a whore. It seems incredibly likely that Tywin manipulated her to do as he wanted.
INT. TYWIN’S BEDCHAMBER - NIGHT
A dark-haired woman lies atop the bedclothes, her face turned away from us, naked save for the golden chains she wears round her neck.
On a wood board atop the bedside table there’s a halved apple, cheese, and a small, sharp knife.
Staring at the naked woman, not really believing who she is, Tyrion walks quietly toward the bed.
Not quietly enough.
SHAE: Tywin? My lion?
She turns with a smile on her face. The smile disappears when she sees Tyrion.
Game of Thrones, Season 4 Episode 10, "The Children" - Official script
This is backed up even more by the fact that in the books Cersei almost certainly had words with her to persuade her to do as she wants.
She followed them back inside and watched as they bundled the girl up in her father's bloody blankets. Shae, her name was Shae. They had last spoken the night before the dwarf's trial by combat, after that smiling Dornish snake offered to champion him. Shae had been asking about some jewels Tyrion had given her, and certain promises Cersei might have made, a manse in the city and a knight to marry her. The queen made it plain that the whore would have nothing of her until she told them where Sansa Stark had gone. "You were her maid. Do you expect me to believe that you knew nothing of her plans?" she had said. Shae left in tears.
A Feast for Crows, Cersei I