As mentioned before, headless testing is the preferred mode for automated tests as it is faster than UI testing. With test example 1 and 3, we did implement the same kind of test: check that a lookup value can be assigned to a customer. Test example 1 in headless mode, while test example 3 uses the UI. Running both tests indeed shows that UI tests are slower than headless tests. Have a look at the graph of execution duration (in seconds).

The average execution duration for the UI tests is 1.35 seconds, while the headless average is almost 7 times faster: 0.20 seconds.