Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCustomerPasswordAutocompleteOnSignIn.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Customer\Test\Page\CustomerAccountLogin;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
15 class AssertCustomerPasswordAutocompleteOnSignIn extends AbstractConstraint
16 {
23  public function processAssert(CustomerAccountLogin $loginPage)
24  {
25  $loginPage->open();
26  \PHPUnit\Framework\Assert::assertTrue(
27  $loginPage->getLoginBlock()->isPasswordAutocompleteOff(),
28  'Password field autocomplete is not off.'
29  );
30  }
31 
37  public function toString()
38  {
39  return 'Assert that autocomplete is off.';
40  }
41 }