public function MetatagAsyncWidgetTest::testMetatagAsyncWidgetClaro in Metatag Asynchronous Widget 1.0.x
Tests the Metatag Async Widget with Claro.
File
- tests/
src/ FunctionalJavascript/ MetatagAsyncWidgetTest.php, line 77
Class
- MetatagAsyncWidgetTest
- Ensures that metatag_async_widget works with JavaScript enabled.
Namespace
Drupal\Tests\metatag_async_widget\FunctionalJavascriptCode
public function testMetatagAsyncWidgetClaro() {
if (!\Drupal::service('extension.list.theme')
->exists('claro')) {
$this
->markTestSkipped('The Claro theme does not exist');
}
\Drupal::service('theme_installer')
->install([
'claro',
]);
\Drupal::configFactory()
->getEditable('system.theme')
->set('default', 'claro')
->save();
$this
->rebuildAll();
$this
->doTestMetatagAsyncWidget('//div[@id="edit-advanced"]/details/summary[text()="Meta tags"]');
}