public function GeolocationJavascriptTest::testCommonMap in Geolocation Field 8
Same name and namespace in other branches
- 8.3 tests/src/FunctionalJavascript/GeolocationJavascriptTest.php \Drupal\Tests\geolocation\FunctionalJavascript\GeolocationJavascriptTest::testCommonMap()
- 8.2 tests/src/FunctionalJavascript/GeolocationJavascriptTest.php \Drupal\Tests\geolocation\FunctionalJavascript\GeolocationJavascriptTest::testCommonMap()
Tests the CommonMap style.
File
- tests/
src/ FunctionalJavascript/ GeolocationJavascriptTest.php, line 187
Class
- GeolocationJavascriptTest
- Tests the JavaScript functionality.
Namespace
Drupal\Tests\geolocation\FunctionalJavascriptCode
public function testCommonMap() {
$this
->drupalGetFilterGoogleKey('geolocation-test');
$this
->assertSession()
->elementExists('css', '.geolocation-common-map-container');
$this
->assertSession()
->elementExists('css', '.geolocation-common-map-locations');
// If Google works, either gm-style or gm-err-container will be present.
$this
->assertSession()
->elementExists('css', '.geolocation-common-map-container [class^="gm-"]');
}