Chris@0: drupalLogin($this->drupalCreateUser(['administer site configuration'])); Chris@0: Chris@0: $page = $this->getSession()->getPage(); Chris@0: $assert_session = $this->assertSession(); Chris@0: Chris@0: $this->drupalGet('admin/structure/config_test/add'); Chris@0: // Test that 'size value' field is not show initially, and it is show after Chris@0: // selecting value in the 'size' field. Chris@0: $this->assertNull($page->findField('size_value')); Chris@0: $page->findField('size')->setValue('custom'); Chris@0: $this->assertNotNull($assert_session->waitForField('size_value')); Chris@0: } Chris@0: Chris@0: }