Web app testing tip: 1
Web app testing tip:
1. Store all your links and headers in an array
2. Use the array to generate your nav bar
3. Use the array to generate a test that navigates to every page and checks for the expected header.
I just did this in @playwrightweb with ~7 lines of code! 🔥
👇

@playwrightweb This app has dozens of pages. Now we know they all load successfully, and display the expected header. All with 7 lines of test code.
And we don't have to maintain this test. If new links are added to the array, the test will check for them. 😃