she was the shadow secretary of state for business, energy and industrial strategy in jeremy corbyn's shadow cabinet from february 2017 to april 2020, losing the position when keir starmer became the leader of the party.