You are here

function SaveSettingsTest::testAddFields in Webform CiviCRM Integration 8.5

Add fields on the webform.

File

tests/src/FunctionalJavascript/SaveSettingsTest.php, line 17

Class

SaveSettingsTest
Tests settings on the webform.

Namespace

Drupal\Tests\webform_civicrm\FunctionalJavascript

Code

function testAddFields() {
  $this
    ->addFieldsOnWebform();
  $elements = [
    'civicrm_1_contact_1_contact_existing',
    'civicrm_1_contact_1_contact_first_name',
    'civicrm_1_contact_1_contact_last_name',
    'civicrm_1_activity_1_activity_activity_type_id',
  ];
  $this
    ->assertElementsOnBuildForm($elements);
}