The importance of UI testing

It's common thinking that the tests that use the UI are generally slow and brittle, and difficult to write and maintain. Nevertheless, UI testing is a practice that is useful to consider when designing the test strategy for developing a software.
A few years ago, Mike Cohn defined the Agile Testing Pyramid in his book Succeeding with Agile: Software Development Using Scrum, which describe the types of tests, and how many are required for each type of implement action to be effective:

The following diagram depicts the testing pyramid: