Skip to content

Commit

Permalink
Fix behat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Aug 5, 2024
1 parent 23c3b37 commit f76fd8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Feature: Paying with Klarna Payments during checkout
And I complete the payment on Klarna
Then I should be on the waiting payment processing page
When Klarna notify the store about the failed payment
Then I should be redirected to the order page page
Then I should be redirected to the order page
And I should be notified that my payment is failed
And I should be able to pay again

Expand All @@ -56,7 +56,7 @@ Feature: Paying with Klarna Payments during checkout
And I cancel the payment on Klarna
Then I should be on the waiting payment processing page
When Klarna notify the store about the cancelled payment
Then I should be redirected to the order page page
Then I should be redirected to the order page
And I should be notified that my payment has been cancelled
And I should be able to pay again

Expand All @@ -70,7 +70,7 @@ Feature: Paying with Klarna Payments during checkout
And I have confirmed order
But I have cancelled Klarna payment
And Klarna notify the store about the cancelled payment
Then I should be redirected to the order page page
Then I should be redirected to the order page
When I try to pay again with Klarna
And Klarna notify the store about the successful payment
Then I should be redirected to the thank you page
Expand Down
4 changes: 2 additions & 2 deletions tests/Behat/Context/Ui/KlarnaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function iTryToPayAgainWithKlarna(): void
}

/**
* @Then /^I should be redirected to the order page page$/
* @Then /^I should be redirected to the order page$/
*/
public function iShouldBeRedirectedToTheOrderPagePage(): void
public function iShouldBeRedirectedToTheOrderPage(): void
{
$this->paymentProcessPage->waitForRedirect();
$orders = $this->orderRepository->findAll();
Expand Down

0 comments on commit f76fd8c

Please sign in to comment.