Move nightwatch tests into the same directory as the code they test
Bug #2036831 reported by
Jane Sandberg
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Discussed in today's new dev working group.
Nightwatch tests are great, but they are in a different directory from the code that they describe. This has a few drawbacks:
* adds to the maintenance burden (if you change a selector in a template, you'd need to remember to change it in the nightwatch test too, for example)
* it's harder to know if a nightwatch test exists for the screen you're currently working with
We should:
* redistribute the nightwatch tests into the eg2/src directory, each with its own extension (for example .nightwatch.ts or .e2e.ts)
* update nightwatch.conf.js to use "src" as the "src_folder" and something matching the new extension as the "filter".
To post a comment you must log in.
+1 to moving them into the same directory as the code they are testing.
+1 to the idea of using .nightwatch.ts to make them particularly easy to spot.