demo icon indicating copy to clipboard operation
demo copied to clipboard

Codeception test fails (BlogPageCest: Blog page works)

Open arogachev opened this issue 4 years ago • 2 comments

What steps will reproduce the problem?

./vendor/bin/codecept run

What is the expected result?

No errors.

What do you get instead?

1) BlogPageCest: Blog page works.
 Test  tests/Acceptance/BlogPageCest.php:testBlogPage
 Step  See "No records"
 Fail  Failed asserting that  on page /blog

There are 3 records at blog page.

Additional info

Q A
Version current master
PHP version https://github.com/yiisoft/demo/blob/3d6ca817d4efd08a4acf1a3a93521422c5764421/docker-compose.yml#L5
Operating system https://github.com/yiisoft/demo/blob/3d6ca817d4efd08a4acf1a3a93521422c5764421/docker-compose.yml#L5

arogachev avatar Feb 11 '22 11:02 arogachev

Need clear database before run tests

vjik avatar Feb 12 '22 08:02 vjik

Either current tests should do a cleanup or we should adjust the command needed to run tests. I think doing cleanup is better.

samdark avatar Feb 12 '22 10:02 samdark