$this->assertCount(1,$this->cssSelect('input[name="sdc_input"]'),'The sdc_input textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name="sdc_input_basic"]'),'The sdc_input_basic textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name="sdc_input_with_label"]'),'The sdc_input_with_label textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('span[id="test_data_label_container"]'),'The span with id "test_data_label_container" should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name="sdc_input_with_default_value"]'),'The sdc_input_with_default_value textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name="sdc_input_with_value"]'),'The sdc_input_with_value textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name="sdc_input_with_value_and_default_value"]'),'The sdc_input_with_value_and_default_value textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name="sdc_input_with_required"]'),'The sdc_input_with_required textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name="sdc_input_with_id_as_prop"]'),'The sdc_input_with_id_as_prop textfield should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[id=test_sdc_input_prop_id]'),'A textfield with id "test_sdc_input_prop_id" should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name=sdc_input_with_id_as_prop]'),'A sdc_input with id "sdc_input_with_id_as_prop" should have been rendered once.');
$this->assertCount(1,$this->cssSelect('input[name=sdc_input_with_id_as_prop_attributes]'),'A sdc_input with id "sdc_input_with_id_as_prop_attributes" should have been rendered once.');
$this->assertCount(1,$this->cssSelect('div[id=test_sdc_input_prop_attributes_id]'),'A div wrapper with id "test_sdc_input_prop_attributes_id" should have been rendered once.');
// Check the position of the form elements in the DOM.
// You may need to adjust your customValidator to actually set
// an error for this value.
$form_builder->submitForm($this,$form_state);
// There should be an error for invalid value.
$this->assertTrue($form_state->hasAnyErrors(),"An error should be set for invalid value.");
$this->assertArrayHasKey('sdc_input_with_validation',$form_state->getErrors(),"An error should be set for invalid value on sdc_input_with_validation.");
// Simulate form submission with a value that should fail
// validation because an invalid value is provided.