Browse Source

lint

pull/994/head
Joe Corall 1 year ago committed by GitHub
parent
commit
779e89270b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      tests/src/Functional/JsonldTypeAlterReactionTest.php

17
tests/src/Functional/JsonldTypeAlterReactionTest.php

@ -36,20 +36,21 @@ class JsonldTypeAlterReactionTest extends JsonldSelfReferenceReactionTest {
} }
else { else {
$this->getSession()->getPage()->selectFieldOption('new_storage_type', 'plain_text'); $this->getSession()->getPage()->selectFieldOption('new_storage_type', 'plain_text');
// first need to submit the form with the elements displayed on initial page load // First need to submit the form with the elements displayed
// the form is using AJAX to send a second element after we selected the radio button above // on initial page load. The form is using AJAX to send a second element
// we can instead get the second element by submitting the form and having it throw an error // after we selected the radio button above
// since the required field is missing // we can instead get the second element by submitting the form
// @TODO: refactor this as a functional javascript test maybe? // and having it throw an error since the required field is missing.
// though we currently don't have selenium running for our tests so not possible ATM // @todo: refactor this as a functional javascript test.
$this->submitForm([ $this->submitForm([
'new_storage_type' => 'plain_text', 'new_storage_type' => 'plain_text',
'label' => 'Typed Predicate', 'label' => 'Typed Predicate',
'field_name' => 'type_predicate', 'field_name' => 'type_predicate',
], $this->t('Continue')); ], $this->t('Continue'));
// now we can proceed, selecting the plain text (i.e. string) for the second element // Now we can proceed, selecting the plain text (i.e. string)
// now that the element is displayed after the initial form submission // for the second element now that the element is displayed after
// the initial form submission.
$this->getSession()->getPage()->selectFieldOption('group_field_options_wrapper', 'string'); $this->getSession()->getPage()->selectFieldOption('group_field_options_wrapper', 'string');
$this->submitForm([ $this->submitForm([
'new_storage_type' => 'plain_text', 'new_storage_type' => 'plain_text',

Loading…
Cancel
Save