restart flickering test

This commit is contained in:
Annika Wolff 2020-05-08 13:41:13 +02:00
parent 5ec453c9fb
commit dd15b0a3a0
1 changed files with 4 additions and 11 deletions

View File

@ -7,22 +7,18 @@ class CustomerCest
{
public $fields = [];
public function updateCustomerProfile(FunctionalTester $I)
public function updateCustomerProfile(FunctionalTester $I): void
{
$customer = $I->loginAsCustomer();
$I->amOnPage('/');
$I->click('Profile');
$I->click('Edit');
$I->selectOption('gender', 'Other');
$I->click('Update Profile');
$I->dontSeeInSource('The old password does not match.');
$I->seeInSource('Profile updated successfully.');
$I->seeRecord(Customer::class, [
@ -31,7 +27,7 @@ class CustomerCest
]);
}
public function updateCustomerAddress(FunctionalTester $I)
public function updateCustomerAddress(FunctionalTester $I): void
{
$I->wantTo('Instantiate a european faker factory to have the vat provider available');
$faker = Faker\Factory::create('at_AT');
@ -43,9 +39,7 @@ class CustomerCest
$I->amOnPage('/');
$I->click('Profile');
$I->click('Address');
$I->click('Add Address');
$this->fields = [
@ -62,7 +56,7 @@ class CustomerCest
];
foreach ($this->fields as $key => $value) {
// the following fields are being rendered via javascript so we ignore them:
// the following fields are rendered via javascript so we ignore them:
if (! in_array($key, [
'country',
'state',
@ -108,8 +102,7 @@ class CustomerCest
}
/**
* @param \FunctionalTester $I
* @param array $fields
* @param FunctionalTester $I
*/
private function assertCustomerAddress(FunctionalTester $I): void
{