You are here

abstract public function WebformAssertLegacyTrait::assertSession in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertSession()

Returns WebAssert object.

Parameters

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

Return value

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

16 calls to WebformAssertLegacyTrait::assertSession()
WebformCardsAjaxJavaScriptTest::testAjax in modules/webform_cards/tests/src/FunctionalJavaScript/WebformCardsAjaxJavaScriptTest.php
Test webform cards ajax.
WebformCardsAutoForwardJavaScriptTest::testAutoForward in modules/webform_cards/tests/src/FunctionalJavaScript/WebformCardsAutoForwardJavaScriptTest.php
Test webform cards auto-forward.
WebformCardsDraftJavaScriptTest::testDraft in modules/webform_cards/tests/src/FunctionalJavaScript/WebformCardsDraftJavaScriptTest.php
Test webform cards draft.
WebformCardsProgressJavaScriptTest::testProgress in modules/webform_cards/tests/src/FunctionalJavaScript/WebformCardsProgressJavaScriptTest.php
Test webform cards progress.
WebformCardsStatesJavaScriptTest::testStates in modules/webform_cards/tests/src/FunctionalJavaScript/WebformCardsStatesJavaScriptTest.php
Test webform cards states.

... See full list

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 681

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

public abstract function assertSession($name = NULL);