You are here

LinkTypeConfirmFormTest.php in Flag 8.4

File

tests/src/FunctionalJavascript/LinkTypeConfirmFormTest.php
View source
<?php

namespace Drupal\Tests\flag\FunctionalJavascript;


/**
 * Tests the confirm form link type.
 *
 * @group flag
 */
class LinkTypeConfirmFormTest extends FlagJsTestBase {

  /**
   * Test the confirm form link type.
   */
  public function testCreateConfirmFlag() {
    $this
      ->drupalLogin($this->adminUser);
    $assert_session = $this
      ->assertSession();
    $page = $this
      ->getSession()
      ->getPage();
    $this
      ->drupalGet('/admin/structure/flags/add');
    $page
      ->pressButton('Continue');
    $page
      ->selectFieldOption('link_type', 'confirm');
    $assert_session
      ->waitForText('Flag confirmation message');
    $assert_session
      ->pageTextContains('Unflag confirmation message');
  }

}

Classes

Namesort descending Description
LinkTypeConfirmFormTest Tests the confirm form link type.