public function ParagraphsCollectionDemoTest::testUsingExperimentalWidget

Tests that demo node is using experimental widget.

File

paragraphs_collection/modules/paragraphs_collection_demo/tests/src/Functional/ParagraphsCollectionDemoTest.php, line 145

Class

ParagraphsCollectionDemoTest
Test the demo for Paragraphs Collection.

Namespace

Drupal\Tests\paragraphs_collection_demo\Functional

Code

public function testUsingExperimentalWidget() {
  $this
    ->loginAsAdmin([
    'edit any paragraphed_content_demo content',
  ]);
  $this
    ->drupalGet('admin/structure/types/manage/paragraphed_content_demo/form-display');
  $this
    ->assertTrue($this
    ->assertSession()
    ->optionExists('edit-fields-field-paragraphs-demo-type', 'paragraphs')
    ->isSelected());
}