How to test 'Discuss' UI Action in ATF

andremelo97
Tera Contributor

Hi everyone,

I'm trying to test the visibility and availability of the "Discuss" button that appears on the Interaction form using ATF (Automated Test Framework). The test scenario is simple as I simply need to click on it, initiate a 'discussion' and submit a comment.

However, I ran into some challenges:

  • The "Discuss" button does not exist as a standard UI Action (sys_ui_action) — it seems to be rendered dynamically.

  • The HTML shows it as a <button id="create_collab_chat">Discuss</button>, which appears to be part of the Connect Chat / Collaboration Sidebar.

  • Since it's a client-side DOM element, I considered using a custom client-side test step to validate its visibility. However, based on ServiceNow’s official documentation, custom ATF steps can only be server-side, which means testing UI components like this is unsupported.

So my questions are:

  1. Has anyone successfully tested or validated the "Discuss" button (or similar UI-only buttons) via ATF?

  2. Is there any supported way to check the presence or visibility of dynamic UI elements in ATF?

  3. Would the only option here be a manual test case, or are there any workarounds (official or clever) that worked for your team?

    Thanks!

0 REPLIES 0