You are here

protected function WebformWizardTestBase::assertCurrentPage in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/src/Functional/Wizard/WebformWizardTestBase.php \Drupal\Tests\webform\Functional\Wizard\WebformWizardTestBase::assertCurrentPage()

Assert the current page using the progress bar's markup.

Parameters

string $title: The title of the page.

string $page: The name (key) of the current page.

4 calls to WebformWizardTestBase::assertCurrentPage()
WebformWizardAdvancedTest::testAdvancedWizard in tests/src/Functional/Wizard/WebformWizardAdvancedTest.php
Test webform advanced wizard.
WebformWizardBasicTest::testBasicWizard in tests/src/Functional/Wizard/WebformWizardBasicTest.php
Test webform basic wizard.
WebformWizardConditionalTest::testConditionalWizard in tests/src/Functional/Wizard/WebformWizardConditionalTest.php
Test webform custom wizard.
WebformWizardCustomTest::testCustomWizard in tests/src/Functional/Wizard/WebformWizardCustomTest.php
Test webform custom wizard.

File

tests/src/Functional/Wizard/WebformWizardTestBase.php, line 33

Class

WebformWizardTestBase
Defines an abstract test base for webform wizard tests.

Namespace

Drupal\Tests\webform\Functional\Wizard

Code

protected function assertCurrentPage($title, $page) {
  $this
    ->assertPattern('|<li data-webform-page="' . $page . '" class="webform-progress-bar__page webform-progress-bar__page--current"><b>' . $title . '</b>|');
}