You are here

public function RavenTest::testRavenJavascriptConfig in Raven: Sentry Integration 8.2

Same name and namespace in other branches
  1. 3.x tests/src/FunctionalJavascript/RavenTest.php \Drupal\Tests\raven\FunctionalJavascript\RavenTest::testRavenJavascriptConfig()

Tests Sentry browser client configuration UI.

File

tests/src/FunctionalJavascript/RavenTest.php, line 32

Class

RavenTest
Tests Raven module.

Namespace

Drupal\Tests\raven\FunctionalJavascript

Code

public function testRavenJavascriptConfig() {
  $admin_user = $this
    ->drupalCreateUser([
    'administer site configuration',
    'send javascript errors to sentry',
  ]);
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalGet('admin/config/development/logging');
  $this
    ->submitForm([
    'raven[js][javascript_error_handler]' => TRUE,
  ], $this
    ->t('Save configuration'));
}