public function JavascriptTestTrait::assertSession in Commerce Core 8.2
Return value
\Drupal\FunctionalJavascriptTests\JSWebAssert A new web-assert option for asserting the presence of elements with.
File
- tests/
src/ Traits/ JavascriptTestTrait.php, line 67
Class
- JavascriptTestTrait
- Allows tests using BrowserTest run with Javascript enabled.
Namespace
Drupal\Tests\commerce\TraitsCode
public function assertSession($name = NULL) {
return new JSWebAssert($this
->getSession($name), $this->baseUrl);
}