Error when running JavaScript test provided by the module.

Created on 3 January 2022, almost 4 years ago
Updated 5 August 2025, 2 months ago

Problem/Motivation

Getting following error when running the functional JS test added in the module.

  1x: Not failing JavaScript test for JavaScript errors is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. This test had the following JavaScript errors: TypeError: Cannot set property 'human' of undefined
    at Object.attach (https://drupal9.lndo.site/modules/contrib/antibot/js/antibot.js?r54uz8:19:36)
    at https://drupal9.lndo.site/core/misc/drupal.js?v=9.3.0:27:24
    at Array.forEach (<anonymous>)
    at Object.Drupal.attachBehaviors (https://drupal9.lndo.site/core/misc/drupal.js?v=9.3.0:24:34)
    at https://drupal9.lndo.site/core/misc/drupal.init.js?v=9.3.0:29:12
    at HTMLDocument.listener (https://drupal9.lndo.site/core/misc/drupal.init.js?v=9.3.0:17:7)
TypeError: Cannot set property 'human' of undefined
    at Object.attach (https://drupal9.lndo.site/modules/contrib/antibot/js/antibot.js?r54uz8:19:36)
    at https://drupal9.lndo.site/core/misc/drupal.js?v=9.3.0:27:24
    at Array.forEach (<anonymous>)
    at Object.Drupal.attachBehaviors (https://drupal9.lndo.site/core/misc/drupal.js?v=9.3.0:24:34)
    at https://drupal9.lndo.site/core/misc/drupal.init.js?v=9.3.0:29:12
    at HTMLDocument.listener (https://drupal9.lndo.site/core/misc/drupal.init.js?v=9.3.0:17:7). See https://www.drupal.org/node/3221100
    1x in AntibotJavaScriptTest::testJavaScript from Drupal\Tests\antibot\FunctionalJavascript

Steps to reproduce

Run the functional JS test.

Proposed resolution

Work as per suggestions in the https://www.drupal.org/node/3221100 .

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇳India gaurav.kapoor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024