Skip to content

Commit

Permalink
Fix behat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Feb 29, 2024
1 parent 639f813 commit 7c2b047
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.13",
"ramsey/uuid-doctrine": "^1.8.1",
"parthenon/parthenon": "^2.2.10",
"parthenon/parthenon": "^2.2.11",
"symfony/console": "7.*",
"symfony/dotenv": "7.*",
"symfony/flex": "^2",
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/TeamContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
*/
public function iViewTheTeamView()
{
$this->sendJsonRequest('GET', '/api/user/team/invite');
$this->sendJsonRequest('GET', '/api/user/team');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/UserContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function iTryToSignUp()
public function iWillSeeAnErrorAboutAnInvalidEmailAddress()
{
$json = json_decode($this->session->getPage()->getContent(), true);

if (!$json || $json['errors']['email'] !== ['A valid email must be provided.']) {
throw new \Exception("Can't find an error about an invalid email");
}
Expand Down

0 comments on commit 7c2b047

Please sign in to comment.