0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 18:46:18 +08:00
discourse/.skills/discourse-writing-rspec-tests/references
Alan Guo Xiang Tan c2e5763321
DEV: Expand system-tests skill reference with new guidance (#40239)
This commit expands the system-tests skill reference: a new "Test
Selectors in Templates" section documents that `data-test-*` attributes
get stripped from production builds by ember-test-selectors, a new
"Assertors Must Use Capybara Matchers" section forbids `find(...).text
== ...` patterns in page object assertors (they bypass Capybara's
auto-retry and flake on re-renders), a new "Debugging Failed System
Tests" section walks through diagnosing failures with strategic `puts` /
`console.log` logging and lists common failure patterns, and the
existing "Writing `it` Block Descriptions" section is reworked to
consistently frame descriptions from the user's perspective.
2026-05-22 12:19:16 +08:00
..
request-specs.md
rspec-style-guide.md
system-tests.md
theme-tests.md
tracking-helpers.md