You are here

public function VarbaseBootstrapParagraphsTests::testCheckVarbaseBootstrapParagraphsCheckParagraphTypesPage in Varbase Bootstrap Paragraphs 9.0.x

Same name and namespace in other branches
  1. 8.7 tests/src/Functional/VarbaseBootstrapParagraphsTests.php \Drupal\Tests\varbase_bootstrap_paragraphs\Functional\VarbaseBootstrapParagraphsTests::testCheckVarbaseBootstrapParagraphsCheckParagraphTypesPage()

Check Varbase Bootstrap Paragraphs default paragraphs Types.

File

tests/src/Functional/VarbaseBootstrapParagraphsTests.php, line 56

Class

VarbaseBootstrapParagraphsTests
Varbase Bootstrap Paragraphs tests.

Namespace

Drupal\Tests\varbase_bootstrap_paragraphs\Functional

Code

public function testCheckVarbaseBootstrapParagraphsCheckParagraphTypesPage() {

  // Given that the root super user was logged in to the site.
  $this
    ->drupalLogin($this->rootUser);
  $this
    ->drupalGet('admin/structure/paragraphs_type');
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Paragraphs types'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Accordion'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Accordion Section'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Carousel'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Columns (Equal)'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Columns (Three Uneven)'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Columns (Two Uneven)'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Column Wrapper'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Drupal Block'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Image'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Modal'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Rich Text'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Tabs'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Tab Section'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('View'));
  $this
    ->assertSession()
    ->pageTextContains($this
    ->t('Webform'));
}