https://github.com/DevExpress/testcafe/issues/2813 provided below workaround to click a Pseudo element through Testcafe. However, it did not work for me. What modifications do I need to make to the below code snippet to make it work?
const {Selector, ClientFunction} = require('testcafe');
Then
const closeDialogFunctionInClient = ClientFunction(() => document.querySelector('div.ngdialog-close').click()) .with({ boundTestRun: testController }) ; //because of the bloody ::before pseudo element await closeDialogFunctionInClient();