You are here

public function EntityQueueFormWidgetMultipleSubqueuesTest::testEntityQueueFormWidgetMultipleSubqueues in Entityqueue Form Widget 8

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

Tests Entity Queue Form Widget with multiple sub queues.

File

tests/src/FunctionalJavascript/EntityQueueFormWidgetMultipleSubqueuesTest.php, line 89

Class

EntityQueueFormWidgetMultipleSubqueuesTest
Tests the UI for Entity Queue Form Widget with Multiple Subqueues.

Namespace

Drupal\Tests\entityqueue_form_widget\FunctionalJavascript

Code

public function testEntityQueueFormWidgetMultipleSubqueues() {
  $this
    ->drupalGet('/node/add/queued_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_multiple_subqueues_1_text = $this
    ->t("Subqueue 1 (Test Multiple subqueues)");
  $test_multiple_subqueues_2_text = $this
    ->t("Subqueue 2 (Test Multiple subqueues)");
  $test_multiple_subqueues_3_text = $this
    ->t("Subqueue 3 (Test Multiple subqueues)");
  $this
    ->assertSession()
    ->pageTextContains($test_multiple_subqueues_1_text);
  $this
    ->assertSession()
    ->pageTextContains($test_multiple_subqueues_2_text);
  $this
    ->assertSession()
    ->pageTextContains($test_multiple_subqueues_3_text);
}