You are here

protected function ResponsivePreview::changeDeviceRotation in Thunder 8.2

Same name and namespace in other branches
  1. 8.5 tests/src/FunctionalJavascript/Integration/ResponsivePreview.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\ResponsivePreview::changeDeviceRotation()
  2. 8.3 tests/src/FunctionalJavascript/Integration/ResponsivePreview.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\ResponsivePreview::changeDeviceRotation()
  3. 8.4 tests/src/FunctionalJavascript/Integration/ResponsivePreview.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\ResponsivePreview::changeDeviceRotation()
  4. 6.2.x tests/src/FunctionalJavascript/Integration/ResponsivePreview.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\ResponsivePreview::changeDeviceRotation()
  5. 6.0.x tests/src/FunctionalJavascript/Integration/ResponsivePreview.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\ResponsivePreview::changeDeviceRotation()
  6. 6.1.x tests/src/FunctionalJavascript/Integration/ResponsivePreview.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\ResponsivePreview::changeDeviceRotation()

Change device rotation for device preview.

1 call to ResponsivePreview::changeDeviceRotation()
ResponsivePreview::testDevicePreview in tests/src/FunctionalJavascript/Integration/ResponsivePreview.php
Testing integration of "responsive_preview" module.

File

tests/src/FunctionalJavascript/Integration/ResponsivePreview.php, line 72

Class

ResponsivePreview
Tests the device preview functionality integration.

Namespace

Drupal\Tests\thunder\FunctionalJavascript\Integration

Code

protected function changeDeviceRotation() {
  $this
    ->getSession()
    ->getPage()
    ->find('xpath', '//*[@id="responsive-preview-orientation"]')
    ->click();
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
}