You are here

public function LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  2. 4.0.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  3. 3.0.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  4. 3.1.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  5. 3.2.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  6. 3.4.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  7. 3.5.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  8. 3.6.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  9. 3.7.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()
  10. 3.8.x tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsContentSingleFormTest::testFieldPropertiesDisabledIfFieldDisabled()

File

tests/src/FunctionalJavascript/LingotekSettingsContentSingleFormTest.php, line 147

Class

LingotekSettingsContentSingleFormTest
@group lingotek

Namespace

Drupal\Tests\lingotek\FunctionalJavascript

Code

public function testFieldPropertiesDisabledIfFieldDisabled() {
  $this
    ->drupalGet('/admin/lingotek/settings/content/node/article/edit');
  $page = $this
    ->getSession()
    ->getPage();
  $this
    ->assertNoFieldChecked('edit-node-article-enabled');
  $this
    ->assertNoFieldChecked('edit-node-article-fields-field-image');
  $this
    ->assertNoFieldChecked('edit-node-article-fields-field-imageproperties-file');
  $this
    ->assertNoFieldChecked('edit-node-article-fields-field-imageproperties-alt');
  $this
    ->assertNoFieldChecked('edit-node-article-fields-field-imageproperties-title');
  $imageCheckbox = $page
    ->find('css', '#edit-node-article-fields-field-image');
  $imageCheckbox
    ->click();
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
  $this
    ->assertFieldChecked('edit-node-article-fields-field-image');
  $this
    ->assertNoFieldChecked('edit-node-article-fields-field-imageproperties-file');
  $this
    ->assertFieldChecked('edit-node-article-fields-field-imageproperties-alt');
  $this
    ->assertFieldChecked('edit-node-article-fields-field-imageproperties-title');
}