Skip to content
Snippets Groups Projects
Commit d0f2a780 authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4881: Test for hCaptcha element

parent 53b2eb38
No related branches found
No related tags found
2 merge requests!433ISTWCMS-6296 Create test for all event dates test cases,!165ISTWCMS-4881: Test Webform anti-spam
......@@ -317,6 +317,8 @@ class UwWcmsBasicTest extends BrowserTestBase {
if ($path === 'form/test-form' && !$this->loggedInUser) {
// Test for Honeypot element.
$this->assertRaw('Leave this field blank');
// Test for hCaptcha element.
$this->assertFieldByXPath('//div[@class="captcha"]/input[@name="captcha_token"]', NULL, 'Page has hCaptcha element.');
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment