You are here

public function VarbaseStyleGuideTest::testCheckVarbaseStyleGuideOnCustomElementsForVartheme in Varbase Style Guide 9.0.x

Check Varbase Style Guide on custom elments.

Varbase elements and Bootstrap elements for Vartheme.

File

tests/src/FunctionalJavascript/VarbaseStyleGuideTest.php, line 130

Class

VarbaseStyleGuideTest
Tests Varbase Style Guide.

Namespace

Drupal\Tests\varbase_styleguide\FunctionalJavascript

Code

public function testCheckVarbaseStyleGuideOnCustomElementsForVartheme() {

  // Check on Vartheme (Bootstrap 4 - SASS).
  $this
    ->drupalGet('admin/appearance/styleguide');
  $this
    ->assertSession()
    ->pageTextContains('Style guide');
  $this
    ->assertSession()
    ->pageTextContains('Showing style guide for Vartheme (Bootstrap 4 - SASS)');

  // Check on Bootstrap elements.
  $this
    ->assertSession()
    ->pageTextContains('Bootstrap elements');

  // Check on Varbase elements.
  $this
    ->assertSession()
    ->pageTextContains('Varbase elements');
  $this
    ->assertSession()
    ->pageTextContains('Callout Standard');
  $this
    ->assertSession()
    ->pageTextContains('Callout Danger');
  $this
    ->assertSession()
    ->pageTextContains('Callout Warning');
  $this
    ->assertSession()
    ->pageTextContains('Callout Info');
}