no she cannot work until the H-1B is approved because it is not a transfer petition but a change of status and she cannot work until the change of status is approved.  If the L-2 EAD expires before the H-1B is approved, she would have to go off the payroll until the H-1B is approved.