Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCustomerPasswordAutocompleteOnAuthorizationPopup.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Checkout\Test\Page\CheckoutCart;
10 use Magento\Checkout\Test\Page\CheckoutOnepage;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 
17 {
25  public function processAssert(
26  CheckoutOnepage $checkoutPage,
27  CheckoutCart $cartPage
28  ) {
29  $cartPage->open();
30  $cartPage->getProceedToCheckoutBlock()->proceedToCheckout();
31 
32  \PHPUnit\Framework\Assert::assertTrue(
33  $checkoutPage->getAuthenticationPopupBlock()->isPasswordAutocompleteOff(),
34  'Password field autocomplete is not off.'
35  );
36  }
37 
43  public function toString()
44  {
45  return 'Assert that autocomplete is off.';
46  }
47 }