From 0eb55f5038dc9d611b57874f2cbb199b90866d7d Mon Sep 17 00:00:00 2001 From: Daniel Sami Date: Fri, 22 Nov 2019 15:24:35 -0500 Subject: [PATCH] Updated contributing doc with notes about E2E --- awx/ui_next/CONTRIBUTING.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/ui_next/CONTRIBUTING.md b/awx/ui_next/CONTRIBUTING.md index b1bf60cf69..9e71381fe1 100644 --- a/awx/ui_next/CONTRIBUTING.md +++ b/awx/ui_next/CONTRIBUTING.md @@ -112,6 +112,9 @@ afterEach(() => { ... ``` +**Test Attributes** - +It should be noted that the `dataCy` prop, as well as its equivalent attribute `data-cy`, are used as flags for any UI test that wants to avoid relying on brittle CSS selectors such as `nth-of-type()`. + ## Handling API Errors API requests can and will fail occasionally so they should include explicit error handling. The three _main_ categories of errors from our perspective are: content loading errors, form submission errors, and other errors. The patterns currently in place for these are described below: