Skip to content

Commit

Permalink
screenshot to investigate fail
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Jun 10, 2024
1 parent 65af60a commit efe4214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/src/FunctionalJavascript/WebformCivicrmTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit efe4214

Please sign in to comment.