Use blank lines to group logically related blocks of code. I think you could use a blank line before this line to separate the setup, element registration code from the code that's the key part of the test.

Maybe a blank line between 27, 28 would make sense too since that groups the lines of code with the assertion that tests the effect of that code.