/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests that non-contextual links will work with the off-canvas dialog.
*
* @dataProvider themeDataProvider
*/
public function testOffCanvasLinks($theme) { $this->
enableTheme($theme);
$this->
drupalGet('/off-canvas-test-links'
);
$page =
$this->
getSession()->
getPage();
$web_assert =
$this->
assertSession();
// Confirm touchevents detection is loaded with Off Canvas assets.
$this->
assertNotNull($web_assert->
waitForElement('css', 'html.no-touchevents'
));
// Make sure off-canvas dialog is on page when first loaded.
$web_assert->
elementNotExists('css', '#drupal-off-canvas'
);