public function GeolocationGoogleGeocoderWidgetTest::testGeocoderWidgetMapPresent in Geolocation Field 8
Same name and namespace in other branches
- 8.3 tests/src/FunctionalJavascript/GeolocationGoogleGeocoderWidgetTest.php \Drupal\Tests\geolocation\FunctionalJavascript\GeolocationGoogleGeocoderWidgetTest::testGeocoderWidgetMapPresent()
- 8.2 tests/src/FunctionalJavascript/GeolocationGoogleGeocoderWidgetTest.php \Drupal\Tests\geolocation\FunctionalJavascript\GeolocationGoogleGeocoderWidgetTest::testGeocoderWidgetMapPresent()
Tests the Google Maps widget.
File
- tests/
src/ FunctionalJavascript/ GeolocationGoogleGeocoderWidgetTest.php, line 127
Class
- GeolocationGoogleGeocoderWidgetTest
- Tests the Google Geocoder Widget functionality.
Namespace
Drupal\Tests\geolocation\FunctionalJavascriptCode
public function testGeocoderWidgetMapPresent() {
$this
->drupalLogin($this->adminUser);
$this
->drupalGetFilterGoogleKey('node/3/edit');
$this
->assertSession()
->elementExists('css', '.geolocation-map-canvas');
// If Google works, either gm-style or gm-err-container will be present.
$this
->assertSession()
->elementExists('css', '.geolocation-map-canvas [class^="gm-"]');
}