You are here

public function SortableviewsTest::testElements in Sortableviews 8

Tests sortableviews key elements exist.

@dataProvider dataProvider

File

tests/src/Functional/SortableviewsTest.php, line 62

Class

SortableviewsTest
Verifies form of sortableviews.

Namespace

Drupal\Tests\sortableviews\Functional

Code

public function testElements($path) {
  $this
    ->drupalLogin($this->user);
  $this
    ->drupalGet($path);
  $this
    ->assertElementPresent('.sortableviews-handle');
  $this
    ->assertElementPresent('.sortableviews-save-changes');
  $this
    ->drupalLogout();
}