diff --git a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php index 6b1ab906d..36d39a974 100644 --- a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php +++ b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php @@ -499,6 +499,7 @@ protected function editContactElement($params) { $this->assertSession()->waitForElementVisible('css', "[data-drupal-selector=\"{$params['selector']}\"] a.webform-ajax-link"); $contactElementEdit = $this->assertSession()->elementExists('css', "[data-drupal-selector=\"{$params['selector']}\"] a.webform-ajax-link"); + $this->createScreenshot($this->htmlOutputDirectory . '/' . rand(1,1000) . '_whyclickfail.png'); $contactElementEdit->click(); $this->assertSession()->waitForElementVisible('css', "button.webform-details-toggle-state");