You are here

protected function CheckoutOrderTest::assertCheckoutProgressStep in Commerce Core 8.2

Asserts the current step in the checkout progress block.

Parameters

string $expected: The expected value.

6 calls to CheckoutOrderTest::assertCheckoutProgressStep()
CheckoutOrderTest::testCacheMetadata in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
Tests checkout flow cache metadata.
CheckoutOrderTest::testCheckout in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
Tests anonymous and authenticated checkout.
CheckoutOrderTest::testLoginWithRequiredRegistrationField in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
Tests that login works even if the registration form has a required field.
CheckoutOrderTest::testRedirectAfterRegistrationOnCheckout in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
Tests redirection after registering at the end of checkout.
CheckoutOrderTest::testRegistrationAfterGuestOrderCheckout in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
Tests that you can register after completing guest checkout.

... See full list

File

modules/checkout/tests/src/Functional/CheckoutOrderTest.php, line 877

Class

CheckoutOrderTest
Tests the checkout of an order.

Namespace

Drupal\Tests\commerce_checkout\Functional

Code

protected function assertCheckoutProgressStep($expected) {
  $current_step = $this
    ->getSession()
    ->getPage()
    ->find('css', '.checkout-progress--step__current')
    ->getText();
  $this
    ->assertEquals($expected, $current_step);
}