A couple can file joint 1040 return only when both hu*****and and wife are either RA or citizen. However, in your situation, your wife has a choice to be elected to be a RA. She also can choose not to do the election at this time and changes her mind later.
You can call IRS for a final clarification, they are very capable.