跳到主要内容

guidelines

testing-library

https://testing-library.com/docs/guiding-principles

The more your tests resemble the way your software is used, the more confidence they can give you.

We try to only expose methods and utilities that encourage you to write tests that closely resemble how your web pages are used

At the end of the day, what we want is for this library to be pretty light-weight, simple, and understandable

selenium

https://www.selenium.dev/documentation/test_practices/encouraged/

This chapter records software design patterns popular amongst many of the users of Selenium that have proven successful over the years