Morning ,
Without seeing/knowing the application it’s difficult to say “this is how I would test this” but here’s some food for thought for you to consider perhaps and discuss with your team.
Ideally, you should be pushing tests as far left as possible, this is because you get generally quicker feedback as the tests are quicker but also because the tests are usually less expensive to implement, maintain and run. Generally, UI tests should be very lightweight to test that your frontend for example hangs together. Quite often you will see things like testing of links, validation, text and that sort of thing within UI tests.
Unit tests
Instead, here for example if your application is MVC (Model-View-Controller), what you could do is introduce some unit tests to check the presence of specific UI components or elements. In those tests, if your View contains logic, or shows/hides certain elements you could unit tests those conditions.
Integration tests
Additionally, you might consider some integration tests if your application is MVC to check components work together as expected. Here you could test the Controller passing data for example to the View - ensuring the View renders for example the correct data, the existence of specific elements based on the state of the Model, or even dynamic content like a list of table is populated correctly.
UI tests
You could check the existence of elements here for example with Selenium but I’d strongly discourage this. Your tests not provide much value for the amount of effort involved, will be slow to execute and give feedback, and a pain to maintain.
Snapshot/visual testing
Something else to consider if the other options are not possible is snapshot or visual testing where you navigate to a page, take a snapshot and then compare that to a previous snapshot to see if things are rendered as expected. There are many free and paid for options out there to consider for example BackstopJS, Applitools, Percy. Again though, whilst you could implement snapshot testing and it’s relatively simple to setup, consider the value, effort etc, don’t just do it because you can.
I hope the above helps