public function GeolocationJavascriptTest::testCommonMap in Geolocation Field 8.3
Same name and namespace in other branches
- 8 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 188
Class
- GeolocationJavascriptTest
- Tests the JavaScript functionality.
Namespace
Drupal\Tests\geolocation\FunctionalJavascriptCode
public function testCommonMap() {
$this
->drupalGet('geolocation-test');
$this
->assertSession()
->elementExists('css', '.geolocation-map-container');
$this
->assertSession()
->elementExists('css', '.geolocation-location');
// If Google works, either gm-style or gm-err-container will be present.
$this
->assertSession()
->elementExists('css', '.geolocation-map-container [class^="gm-"]');
}