Just curious: I’ve always written tests in a declarative style especially with page object model. But doesn’t this break the single responsibility principle? I used to write things with an imperative style but maintenance was a headache and it was harder to read.
So my question is: Is there a general consensus of which we should be using in our tests? And if it IS declarative, doesn’t that break SOLID (specifically the S) principles?
Source: Read More