Browse Source

Change value of submit button.

pull/990/head
Rosie Le Faive 1 year ago
parent
commit
355f5263c1
  1. 19
      tests/src/Functional/JsonldTypeAlterReactionTest.php

19
tests/src/Functional/JsonldTypeAlterReactionTest.php

@ -26,11 +26,20 @@ class JsonldTypeAlterReactionTest extends JsonldSelfReferenceReactionTest {
// Add the typed predicate we will select in the reaction config. // Add the typed predicate we will select in the reaction config.
// Taken from FieldUiTestTrait->fieldUIAddNewField. // Taken from FieldUiTestTrait->fieldUIAddNewField.
$this->submitForm([ if (version_compare(\Drupal::VERSION, '10.2.0-dev', 'lt')) {
'new_storage_type' => 'string', $this->submitForm([
'label' => 'Typed Predicate', 'new_storage_type' => 'string',
'field_name' => 'type_predicate', 'label' => 'Typed Predicate',
], 'Save and continue'); 'field_name' => 'type_predicate',
], 'Save and continue');
}
else {
$this->submitForm([
'new_storage_type' => 'string',
'label' => 'Typed Predicate',
'field_name' => 'type_predicate',
], 'Continue');
}
$this->submitForm([], $this->t('Save field settings')); $this->submitForm([], $this->t('Save field settings'));
$this->submitForm([], $this->t('Save settings')); $this->submitForm([], $this->t('Save settings'));
$this->assertSession()->responseContains('field_type_predicate'); $this->assertSession()->responseContains('field_type_predicate');

Loading…
Cancel
Save