Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ATF Test Suite for Communities not finding testable components

JNSpencer
Tera Contributor

I am trying to get a cloned version of the Communities ATF Test Suite working, and I am running into issues with the "Reject any moderation task" Test.

 

Basic overview of the flow: 

Impersonate Community User

Navigate to Community Forum

Post a question in a forum

Impersonate a Forum Admin

Select the posted question

Click on 'Button <a> [actionQuestionMenu]'

Select 'Menu item <a>: Report Content'

etc....

 

It will run until the Forum Admin clicks on the posted question, and then fails to find the 'actionQuestionMenu'. I have tried to regenerate the test from scratch, and when I try to add that step, I get a message that there are no testable components. 

 

I'm including a screenshot of the screen I am struggling to test. the 'actionQuestionMenu' is the '...' next to 'Subscribe'.

1 REPLY 1

Som4
Tera Contributor

Why It’s Hard to Test with ATF:
ATF only works on known DOM elements and form fields in the Classic UI or Workspace UI.

 

The actionQuestionMenu is:

- A client-side constructed menu

- Often inside a shadow DOM (inaccessible to ATF)

- Triggered by JavaScript events and not always present in the DOM until clicked