You are here

public function ProductTabsTest::testProductTypeTabs in Ubercart 8.4

Tests that product tabs show up on the product content type page.

File

uc_product/tests/src/Functional/ProductTabsTest.php, line 86

Class

ProductTabsTest
Tests the product edit page tabs.

Namespace

Drupal\Tests\uc_product\Functional

Code

public function testProductTypeTabs() {

  /** @var \Drupal\Tests\WebAssert $assert */
  $assert = $this
    ->assertSession();
  $this
    ->drupalGet('admin/structure/types/manage/product');

  // Check we are on the node type page.
  $assert
    ->fieldValueEquals('name', 'Product');

  // Check that each of the tabs exist.
  $assert
    ->linkExists('Product attributes');
  $assert
    ->linkExists('Product options');
}