Skip to content

Commit

Permalink
Use shipping carrier translation in checkout payment step
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaIvanovski committed Mar 12, 2024
1 parent 612be68 commit 8395d64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Codeception/Acceptance/CheckoutCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testNoOptinRequiredDuringCheckoutRegistration(AcceptanceTester $
->enterAddressData($this->getUserAddressFormData())
->goToNextStep();

$I->see(Translator::translate('SELECT_SHIPPING_METHOD'));
$I->see(Translator::translate('SELECTED_SHIPPING_CARRIER'));
}

public function testOptinNeverRequiredDuringGuestCheckout(AcceptanceTester $I): void
Expand All @@ -63,7 +63,7 @@ public function testOptinNeverRequiredDuringGuestCheckout(AcceptanceTester $I):
->enterAddressData($this->getUserAddressFormData())
->goToNextStep();

$I->see(Translator::translate('SELECT_SHIPPING_METHOD'));
$I->see(Translator::translate('SELECTED_SHIPPING_CARRIER'));
}

public function testOptinRequiredDuringCheckoutRegistration(AcceptanceTester $I): void
Expand Down Expand Up @@ -103,7 +103,7 @@ public function testOptinRequiredDuringCheckoutRegistration(AcceptanceTester $I)
->enterShippingAddressData($this->getUserAddressFormData())
->goToNextStep();

$I->see(Translator::translate('SELECT_SHIPPING_METHOD'));
$I->see(Translator::translate('SELECTED_SHIPPING_CARRIER'));
$I->dontSee(Translator::translate('OEGDPROPTIN_CONFIRM_USER_REGISTRATION_OPTIN'));
}

Expand Down Expand Up @@ -151,7 +151,7 @@ public function testOptinsForAddressChangeInCheckout(AcceptanceTester $I): void
$userCheckout
->goToNextStep();

$I->see(Translator::translate('SELECT_SHIPPING_METHOD'));
$I->see(Translator::translate('SELECTED_SHIPPING_CARRIER'));
$I->dontSee(Translator::translate('OEGDPROPTIN_CONFIRM_STORE_DELIVERY_ADDRESS'));
}
}

0 comments on commit 8395d64

Please sign in to comment.