Commit d0f2a780 authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4881: Test for hCaptcha element

parent 53b2eb38
......@@ -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.');
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment