You are here

public function EntityQueueFormWidgetSimpleQueueTest::testEntityQueueFormWidgetSimpleQueue in Entityqueue Form Widget 8

Same name and namespace in other branches
  1. 2.0.x tests/src/FunctionalJavascript/EntityQueueFormWidgetSimpleQueueTest.php \Drupal\Tests\entityqueue_form_widget\FunctionalJavascript\EntityQueueFormWidgetSimpleQueueTest::testEntityQueueFormWidgetSimpleQueue()

Tests Entity Queue Form Widget with Simple Queue.

File

tests/src/FunctionalJavascript/EntityQueueFormWidgetSimpleQueueTest.php, line 66

Class

EntityQueueFormWidgetSimpleQueueTest
Tests the UI for Entity Queue Form Widget with Simple Queue.

Namespace

Drupal\Tests\entityqueue_form_widget\FunctionalJavascript

Code

public function testEntityQueueFormWidgetSimpleQueue() {
  $this
    ->drupalGet('/node/add/test_content');
  $this
    ->assertSession()
    ->waitForElementVisible('css', '#edit-entityqueue-form-widget');
  $entityqeues_settings_text = $this
    ->t('Entityqueues settings');
  $this
    ->assertSession()
    ->pageTextContains($entityqeues_settings_text);
  $this
    ->clickLink($entityqeues_settings_text);
  $test_simple_queue_text = $this
    ->t("Test Queue");
  $this
    ->assertSession()
    ->pageTextContains($test_simple_queue_text);
}