You are here

protected function TestBase::submitSettingsForm in Double Field 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/FunctionalJavascript/TestBase.php \Drupal\Tests\double_field\FunctionalJavascript\TestBase::submitSettingsForm()

Submits formatter form.

10 calls to TestBase::submitSettingsForm()
FormatterTest::testAllowedValues in tests/src/FunctionalJavascript/FormatterTest.php
Test callback.
FormatterTest::testBooleanAndString in tests/src/FunctionalJavascript/FormatterTest.php
Test callback.
FormatterTest::testDateAndUri in tests/src/FunctionalJavascript/FormatterTest.php
Test callback.
FormatterTest::testDetailsFormatter in tests/src/FunctionalJavascript/FormatterTest.php
Test callback.
FormatterTest::testEmailAndTelephone in tests/src/FunctionalJavascript/FormatterTest.php
Test callback.

... See full list

File

tests/src/FunctionalJavascript/TestBase.php, line 226

Class

TestBase
Base class for Double Field JavaScript tests.

Namespace

Drupal\Tests\double_field\FunctionalJavascript

Code

protected function submitSettingsForm() : void {
  $page = $this
    ->getSession()
    ->getPage();
  $page
    ->pressButton('Update');
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
  $page
    ->pressButton('Save');
  $this
    ->assertXpath('//div[contains(., "Your settings have been saved.")]');
}