public function LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled in Lingotek Translation 3.2.x
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 4.0.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.0.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.1.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.3.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.4.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.5.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.6.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.7.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
- 3.8.x tests/src/FunctionalJavascript/LingotekSettingsTabContentFormTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekSettingsTabContentFormTest::testFieldPropertiesDisabledIfFieldDisabled()
File
- tests/
src/ FunctionalJavascript/ LingotekSettingsTabContentFormTest.php, line 161
Class
- LingotekSettingsTabContentFormTest
- @group lingotek
Namespace
Drupal\Tests\lingotek\FunctionalJavascriptCode
public function testFieldPropertiesDisabledIfFieldDisabled() {
$this
->drupalGet('/admin/lingotek/settings');
$page = $this
->getSession()
->getPage();
$contentTabDetails = $page
->find('css', '#edit-parent-details');
$contentTabDetails
->click();
$nodeTabDetails = $page
->find('css', '#edit-entity-node');
$nodeTabDetails
->click();
$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');
}