From dd15b0a3a0656b209bf3524fe718aa1a1305f831 Mon Sep 17 00:00:00 2001 From: Annika Wolff Date: Fri, 8 May 2020 13:41:13 +0200 Subject: [PATCH] restart flickering test --- tests/functional/Customer/CustomerCest.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tests/functional/Customer/CustomerCest.php b/tests/functional/Customer/CustomerCest.php index 873761be9..cd5ac23ac 100644 --- a/tests/functional/Customer/CustomerCest.php +++ b/tests/functional/Customer/CustomerCest.php @@ -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 {