public function MetatagAsyncWidgetTest::testMetatagAsyncWidgetBartik in Metatag Asynchronous Widget 1.0.x
Tests the Metatag Async Widget with Bartik.
File
- tests/
src/ FunctionalJavascript/ MetatagAsyncWidgetTest.php, line 94
Class
- MetatagAsyncWidgetTest
- Ensures that metatag_async_widget works with JavaScript enabled.
Namespace
Drupal\Tests\metatag_async_widget\FunctionalJavascriptCode
public function testMetatagAsyncWidgetBartik() {
if (!\Drupal::service('extension.list.theme')
->exists('bartik')) {
$this
->markTestSkipped('The Bartik theme does not exist');
}
\Drupal::service('theme_installer')
->install([
'bartik',
]);
\Drupal::configFactory()
->getEditable('system.theme')
->set('default', 'bartik')
->save();
$this
->rebuildAll();
$this
->doTestMetatagAsyncWidget('//li[contains(@class, "vertical-tabs__menu-item")]/a/strong[text()="Meta tags"]');
}