Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Sep 8, 2023
1 parent ecdbfb5 commit eca7700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/codeception/_support/AcceptanceTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ private function getVoteButtonSelector(int $answerId, string $suffix = ''): stri

public function canVote(int $answerId)
{
$this->seeElement($this->getVoteButtonSelector($answerId, ':not([disabled])'));
$this->waitForElementVisible($this->getVoteButtonSelector($answerId, ':not([disabled])'));
}

public function cannotVote(int $answerId)
{
$this->seeElement($this->getVoteButtonSelector($answerId, '[disabled]'));
$this->waitForElementVisible($this->getVoteButtonSelector($answerId, '[disabled]'));
}

public function vote(int $answerId, string $buttonTitle)
Expand Down
1 change: 0 additions & 1 deletion tests/codeception/acceptance/QuestionCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function testCreateQuestionWithAnswersAndTestVoting(AcceptanceTester $I)
$I->amGoingTo('vote on the second Answer by Admin');
$I->upVote(2);
$I->checkVotingSummary(2, 1);
$I->wait(1);
$I->upVote(2);
$I->checkVotingSummary(2, 0);

Expand Down

0 comments on commit eca7700

Please sign in to comment.