You are here

public function SlideshowTest::assertSession in Lightning Media 8.4

Same name and namespace in other branches
  1. 8.3 modules/lightning_media_slideshow/tests/src/FunctionalJavascript/SlideshowTest.php \Drupal\Tests\lightning_media_slideshow\FunctionalJavascript\SlideshowTest::assertSession()

Returns WebAssert object.

Parameters

string $name: (optional) Name of the session. Defaults to the active session.

Return value

\Drupal\Tests\WebAssert A new web-assert option for asserting the presence of elements with.

Overrides WebDriverTestBase::assertSession

1 call to SlideshowTest::assertSession()
SlideshowTest::testSlideshow in modules/lightning_media_slideshow/tests/src/FunctionalJavascript/SlideshowTest.php
Tests creating a slideshow block with media items in it.

File

modules/lightning_media_slideshow/tests/src/FunctionalJavascript/SlideshowTest.php, line 129

Class

SlideshowTest
Tests the basic functionality of Lightning Media's slideshow component.

Namespace

Drupal\Tests\lightning_media_slideshow\FunctionalJavascript

Code

public function assertSession($name = NULL) {
  return new WebDriverWebAssert($this
    ->getSession($name), $this->baseUrl);
}