Can I travel while my I-485 is pending?
Only with advance parole in hand, unless you hold valid H-1B or L-1 status and return in that status. Leaving without either abandons the I-485.
Not without advance parole, in most cases. If you leave the United States while your Form I-485 is pending and have no advance parole document, USCIS treats the application as abandoned (8 CFR 245.2(a)(4)(ii)). The exception is for people in valid H-1B or L-1 status, and their H-4 or L-2 family members, who return in that status.
Who the exception covers
The regulation protects an applicant who was lawfully admitted in H-1B or L-1 status, who is still maintaining that status, and who returns in that status or in the same classification, with the dependents. It also protects people in a few other categories, such as K-3 and K-4 holders. A person in F-1, B-2 or any other status does not have this protection, and neither does a person with a pending I-485 and no valid nonimmigrant status.
What advance parole does
Advance parole is a travel document, issued on Form I-131, that allows the applicant to return and be considered for parole at the port of entry (USCIS, Form I-131). It is the way a person with a pending I-485 leaves and comes back without abandoning the case. It is not a visa, and CBP decides whether to admit the person.
Risks even with the document
A person who has accrued unlawful presence, a prior removal order, or a criminal history can face problems at the border. A person who travels on advance parole while in a status that allows the nonimmigrant route may be better off returning in that status. A long trip abroad can also raise questions about the person's residence plans.
A worked case
An applicant with a pending I-485 and a valid advance parole card travels for a week, returns with the card and the I-485 receipt, and is paroled in at the airport. The I-485 remains pending. Another applicant leaves for a family emergency with no card, and the I-485 is treated as abandoned. If that person was in H-1B status and returns on a valid H-1B visa in the same status, the case is protected.
What goes wrong
Leaving before the card arrives, letting the card expire while abroad, and assuming a pending I-485 is enough are the usual faults. Another is traveling to a place where return is unsafe.
An immigration attorney should be consulted before any trip while an I-485 is pending, since the cost of a mistake is the case.