Error on combine test or trial functions from different spaces

I’ve already told you that you should use a Mixed-element.

In general, I would strongly advice you to familiarize yourself with the demos
https://docs.fenicsproject.org/dolfinx/v0.6.0/python/demos.html#demos
and if you want more details, consider the tutorial:
https://jsdokken.com/dolfinx-tutorial/