LinkTypeConfirmFormTest.php in Flag 8.4
File
tests/src/FunctionalJavascript/LinkTypeConfirmFormTest.php
View source
<?php
namespace Drupal\Tests\flag\FunctionalJavascript;
class LinkTypeConfirmFormTest extends FlagJsTestBase {
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');
}
}