You are here

public function ParagraphsCollectionDemoTest::testUsingExperimentalWidget in Paragraphs Collection 8

Tests that demo node is using experimental widget.

File

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
    ->assertOptionSelected('edit-fields-field-paragraphs-demo-type', 'paragraphs', 'Using experimental widget.');
}