What are some best practices for structuring e2e tests?
问题 I'm a bit confused as to the best way to structure end to end tests. Most tests tests that I write depend on other tests. i.e User needs to log in User needs to create Foo User can now create Bar Bar needs to exist, in order to edit it obviously. How would you structure your tests to take this into account? 回答1: I would personally make use of the PageObject pattern, this will allow reliability and make the code more maintainable in these situations. Once you have that in place you can then