3 namespace Drupal\Tests\config\FunctionalJavascript;
5 use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
8 * Tests the Config operations through the UI.
12 class ConfigEntityTest extends WebDriverTestBase {
17 public static $modules = ['config_test'];
20 * Tests ajax operations through the UI on 'Add' page.
22 public function testAjaxOnAddPage() {
23 $this->drupalLogin($this->drupalCreateUser(['administer site configuration']));
25 $page = $this->getSession()->getPage();
26 $assert_session = $this->assertSession();
28 $this->drupalGet('admin/structure/config_test/add');
29 // Test that 'size value' field is not show initially, and it is show after
30 // selecting value in the 'size' field.
31 $this->assertNull($page->findField('size_value'));
32 $page->findField('size')->setValue('custom');
33 $this->assertNotNull($assert_session->waitForField('size_value'));