How to connect to wifi while connected to a device through thunderbolt bridge Macbook --> Thunderbolt Ethernet adapter --> Ethernet Cable --> Device under test with IP address

The device under test is not connected to the internet. While I am testing the device I still need an internet connection, but the non internet device connected with the Thunderbolt Ethernet adapter takes over and I cannot connect to the internet through wifi.
Choose Apple menu > System Preferences, then click Network. In the
list on the left, you see the connections/services.
Click the Action pop-up menu at the bottom, then choose Set Service
Order.


Drag a service, in your case WiFi, to the top of the list.


Click OK, then click Apply to make the new settings active.