Leaving AUH to go to Dubai is definitely uncomplicated - just make sure you mention in the arrival quarantine processing tent that you're going to Dubai.
Dubai to AUH, I'm afraid I have no idea - as far as I know, there has always been some sort of an exemption for entering Abu Dhabi from Dubai in order to fly out of AUH, but I can't say for sure what the current rules are.